7.6

Table Of Contents
% Retrieve and count the number of iterations of "address" for the current datapage
Getmetacount('address')
If (function)
Evaluates an expression and returns one of two specified values according to the results of the evaluation.
Syntax
if( expression, trueresult, falseresult ) any type
Arguments
expression
Boolean value. If it evaluates to true, the function returns the contents of trueresult, otherwise it returns the contents of falsere-
sult.
trueresult, falseresult
Values of any type, as long as both are of the same type. The return value of the function is therefore of the same type as
trueresult and falseresult.
Code Sample Example
This example changes the text to display according to the current value of a variable.
Example
show(if(&pagenumber=1,'Customer Copy','Store Copy'))
Length (function)
Returns the length of a string, or the number of elements in an array.
Syntax
length( element ) integer value
Argument
element
Either a string value, or an array variable.
Code Sample Example
Example 1
This example creates an a string array with the same number of elements as the &parts array.
define( &partnames, arraystring, length( &parts ) )
©2010 Objectif Lune Inc - 520 -