7.4

Table Of Contents
statement is strongly recommended, as it is optimized by comparison to the elseif statement. Also note that documents
created with previous versions and using the if...elseif...endif structure will not be updated, for full backward compatibility.
Syntaxes
Prior to version 7.0
if( condition )
elseif()
endif()
Version 7.0 and above
if( condition1 )
...
elseif( condition2 )
...
else()
...
endif()
Argument
condition, condition1, condition2
Value of type Boolean to evaluate.
Code Sample Example
This example simply prints 5 lines of text, selecting fonts according to line numbers.
Example prior to version 7.0
define(&x,integer,1)
%Define loop variable and then set up loop
for(&x,1,1,5)
if((&x mod 2)=0)
%If &x is an even number
setstyle(&bluefont)
%use the blue font
elseif() %otherwise
setstyle(&Default)
©2010 Objectif Lune Inc - 293 -