Skip to content

Instantly share code, notes, and snippets.

@bluvertigo
Forked from beezeebly/gist:8153584
Last active November 23, 2017 11:07
Show Gist options
  • Save bluvertigo/39d560fc2bba94651820005dea0664ff to your computer and use it in GitHub Desktop.
Save bluvertigo/39d560fc2bba94651820005dea0664ff to your computer and use it in GitHub Desktop.
Logical Operator

Logical Operators

  • && and (both are true)
  • || or (at least one is true)
  • ! not

AND

true && true
// true

true && false
// false

false && false
// false

OR

true || true
// true

true || false
// true

false || false
// false

NOT

!false
// true

!false || !false
// true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment