7.4

Table Of Contents
Syntax
add( expression, expression2 ) integer, measure, currency value
Arguments
expression1, expression2
Integer, measure, or currency values. Both expressions must be the same type. The returned value is set according to the
type of the parameters.
Code Sample Examples
Examples 1 and 2 show both ways of adding numbers.
Example 1
show(inttostr(2+2)) %Displays 4
Example 2
show(floattostr(add(4.7,2.1))) %Displays 6.8
Eq (function)
Compares two expressions of any type and returns true if both are equal, false otherwise. This is the functional equivalent of
the = operator.
Syntax
eq( expression1, expression2 ) boolean value
Arguments
expression1, expression2
Values of any type. Both expressions must be of the same type.
Code Sample Examples
Examples 1 and 2 shows both ways of comparing two expressions.
Example 1
if( eq(&current.line, 33) )
show('Middle of page')
endif()
Example 2
if(&current.line = 33)
show('Middle of page')
endif()
©2010 Objectif Lune Inc - 552 -