7.4

Table Of Contents
Not (Boolean operator function)
Negates the specified expression. Not to be confused with the neg function: not is a Boolean operator function, not a math-
ematical 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()
Or (Boolean operator function)
Returns true if either or both specified expressions are true, false otherwise.
Syntax
or( expression1, expression2 ) Boolean value
expression1 or expression2 Boolean value
Arguments
expression1, expression2
Boolean values.
Code Sample Examples
These examples illustrate the possible values for OR.
©2010 Objectif Lune Inc - 558 -