Skip to content

Instantly share code, notes, and snippets.

@heinthanth
Created September 1, 2019 03:20
Show Gist options
  • Save heinthanth/e5735447a75325121bf040e3a221da80 to your computer and use it in GitHub Desktop.
Save heinthanth/e5735447a75325121bf040e3a221da80 to your computer and use it in GitHub Desktop.
if-elseif-else
if (condition1) {
// will execute if condition1 is true
} else if (condition2) {
// will execute if condition1 is false and condition is true
} else {
// will execute if both condition1 and condition2 are false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment