7.5

Table Of Contents
Code Sample Examples
Example 1 and Example 2 show both ways of comparing two expressions. Example 2 illustrates the >= operator.
Example 1
if( ge(&current.line, 50) )
show('Bottom of page')
endif()
Example 2
if(&current.line >= 50)
show('Bottom of page')
endif()
Get (function)
Returns an element of an array.
Syntax
get( array, position ) array element
Argument
array
Name of the array.
position
Integer specifying the position in the array, of the element you want to retrieve. Recall that the first position in an array is 0,
the second is 1, the third 2, etc.
Code Sample Examples
Examples 1 and 2 are equivalent representations of using the get() command.
Example 1
&month := get(&MyArray,12)
Example 2
&month := &MyArray[12]
©2010 Objectif Lune Inc - 285 -