7.5

Table Of Contents
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'))
IsNumber (function)
Tests a string and returns true if the string is a measure or integer value.
Syntax
isnumber( string ) Boolean value
Argument
string
String value.
Code Sample Example
This example displays the word Yes if the string is either a measure or an integer, and No if it is not.
Example
show(if(isnumber(@(1,1,10)),'Yes','No'))
IsPageEmpty (function)
Returns False if the current data page contains data, or True if it does not.
Syntax
ispageempty() Boolean
©2010 Objectif Lune Inc - 555 -