7.4

Table Of Contents
if(&current.line <> 1) %Same statement, using the <> operator
show('Not a new page')
endif()
Neg (function)
Returns the negative value of the specified expression. This is the functional equivalent to the - sign.
Syntax
neg( expression1 ) integer, measure, currency value
Argument
expression1
Integer, measure or currency value. The returned value is the same type as expression1.
Code Sample Examples
Examples 1and 2 show both ways of negating a number. Negating negative numbers yields a positive result.
Example 1
-12 %Returns -12
-&max %Returns negative of the value of the variable &max
neg(-12.45) %Returns 12.45
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.
©2010 Objectif Lune Inc - 307 -