Skip to content

Instantly share code, notes, and snippets.

@brettp
Created November 21, 2014 17:45
Show Gist options
  • Save brettp/839b7e71eb1b85452b6a to your computer and use it in GitHub Desktop.
Save brettp/839b7e71eb1b85452b6a to your computer and use it in GitHub Desktop.
switch (true) {
case whatever && whatever2:
doSomething();
break;
case whatever:
doSomethingElse();
break;
default:
doNothing();
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment