Created
September 14, 2014 21:47
-
-
Save jillesme/36abb21d017c072a1af6 to your computer and use it in GitHub Desktop.
If function demystified.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch (condition) { | |
case true: | |
// Yes | |
break; | |
case false: | |
// No | |
break; | |
default: | |
// Maybe | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment