GLBasic User Manual

Main sections

NOT

NOT expression#$



The NOT keyword negates an expression. So if you want to test if something is NOT as it is, you write:

LOCAL a = 5

IF NOT (a = 5) THEN STDOUT "a <> 5\n"
IF NOT a THEN STDOUT "a = 0\n"

See also...