Skip to content

Instantly share code, notes, and snippets.

@igstan
Created December 14, 2011 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save igstan/1476000 to your computer and use it in GitHub Desktop.
Save igstan/1476000 to your computer and use it in GitHub Desktop.
Stupid way to write a negate if statement without the logical negation operator
var boolConditon = false;
if (boolConditon) {} else {
println("false branch");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment