Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 10:44, 15 August 2025 by Dylan (talk | contribs) (new: info, syntax, examples where true, examples where false)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The and operator is a boolean operator which will return true if the boolean value to the right of it is false.

In many languages, the not operator uses the ! symbol.

In some other languages, a keyword is used instead: in Python, for example, this keyword is not.

Examples where not returns true

edit edit source
!false
!(4 < 6)
!(7 == 8)

Examples where not returns false

edit edit source
!true
!(5 == 5)
!(8 < 10)