Skip to content

Instantly share code, notes, and snippets.

@tomlane
Created February 23, 2012 18:41
Show Gist options
  • Save tomlane/1894276 to your computer and use it in GitHub Desktop.
Save tomlane/1894276 to your computer and use it in GitHub Desktop.
JS logic 101
//Javascript Logic 101
//make "that" have the value of true (boolean)
that = true
//check if "that" is false
if (!that) { //returns false. (it is not true that the value is set to false)
//do something
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment