7.6

Table Of Contents
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()
Find (function)
Checks for the presence of a string within a rectangular region of the current data page. If the specified string is found, the
function returns true. This allows you to look for strings within a more general area, rather than at some precise location.
Syntax
find( string1, column1, line1, column2, line2 ) Boolean value
Argument
string1
String value to look for.
column1, line1
Integer values for the top left corner of the rectangular region to search in the current data page.
column2, line2
©2010 Objectif Lune Inc - 551 -