7.5

Table Of Contents
NoCascade 2
Search only the level specified by the path argument
(defaults toPage level when path argument is empty),
instead of default behavior, going from the Page levelto
the Job level.
FailIfNotFound 4
Raise an error and crash the job is the specified nameis
not found instead of returning an empty string.
path
Optional string value to specify the level where to start counting the field or attribute. Path components cannot be indexed, and
if no path
is provided, the search is done from the the Page level.
Note: The node names of the path argument can have an optional zero-based index, indicated between square brackets ('[
]'), to access a specific node. If no index is provided, the first node is used.
Also note that , if no attribute nor field is found, the command returns zero, unless the FailIfNotFound flag is specified.
Code Sample Example
This example shows the syntax for the GetMetacount() function.
% 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'))
©2010 Objectif Lune Inc - 521 -