Skip to content

Instantly share code, notes, and snippets.

@Andorbal
Created March 19, 2015 15:56
Show Gist options
  • Save Andorbal/36545663bf1b6b8e9d0f to your computer and use it in GitHub Desktop.
Save Andorbal/36545663bf1b6b8e9d0f to your computer and use it in GitHub Desktop.
Deep nested conditionals
var foo = IsThing1True ? "Thing 1":
IsThing2True ? "Thing 2":
IsThing3True ? "Thing 3":
IsThing4True ? "Thing 4":
IsThing5True ? "Thing 5":
IsThing6True ? "Thing 6":
IsThing7True ? "Thing 7":
IsThing8True ? "Thing 8":
"Thing 9";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment