NOT

NOT

PERFORMS THE LOGICAL NEGATION OF A LOGICAL EXPRESSION

  • Type: Operator
  • Parameter: 1
  • Group: Structures

ACTION

The operator returns the logical negation of a logical expression:

TRUE when the expression is FALSE,

FALSE when the expression is TRUE.

SYNTAX: NOT(L)

  • L: logical expression.

USE

  • The operator is used in the condition of "IF", "WHILE", "UNTIL".

ERROR

  • If L is not a correct logical expression.
  • If NOT is used somewhere else that in an "IF", "WHILE" or "UNTIL" condition.

EXAMPLE

dim a

a=1

if not(a<>1) then print "a is 1"

SEE ALSO

IF

THEN

ELSE

END_IF

WHILE

END_WHILE

REPEAT

UNTIL

AND

OR