7.67.52015-05-06

Not (Boolean operator function)

Negates the specified expression. Not to be confused with the neg function: not is a Boolean operator function, not a mathematical one.

Syntax

not( expression1 ) Boolean value

Argument

expression1

Boolean value.

Code Sample Example

This example shows how NOT can be used in place of operators.

Example


define(&x,integer,1) %Define loop variable
for(&x,1,1,10) %Set loop
  if(not(&x=5)) %Same as if(&x<>5)
    show('This is NOT the 5th line') %Show some text
  elseif()
    show('This IS the 5th line') %Show alternate
  endif()
endfor()