Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Not operator: Difference between revisions

From Coderwiki
new: info, syntax, examples where true, examples where false
 
(No difference)

Latest revision as of 10:44, 15 August 2025

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)