NOT |
not is used to define the "logic negation" of a logic value.
not expr
|
Element |
Description |
Restrictions |
|
expr |
expression_logique. |
None. |
# Test : is there I <> 1 ?
If not ( I = 1 )
Infbox "The condition I=1 is not met"
Endif
# In
this case you could have written If I<>1...
not gives a logic result (0->false, 1->true) dependent on a logic expression having true (non null) or false (null) values, in accordance with the following truth table:
|
expr |
not expr |
|
FALSE |
TRUE (=1) |
When a formula is entered containing an ‘not‘ in a mask or a routine, for example, the keyword recognition phase replaces this keyword with the equivalent character '!'; thus you may write either: not expr ou ! expr
|
Error |
Description |
|
ERMODE (10) |
The arguments are not numerical. |
|
|