7.4

Table Of Contents
endif()
%Same statement, using the <= operator
if(&current.line <= 50)
show('Top of page')
endif()
Less or equal to (<=) operator
See "LT (function)" (page 556).
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()
= (operator)
Assign a value to a variable. This provides a more convenient alternative to the set() command. Note that spaces between
the operator and its operands are optional.
Code Samples
©2010 Objectif Lune Inc - 393 -