7.4

Table Of Contents
%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)
%use the default font
endif()
show('Some text to display')
%Display the text
crlf()
%Skip to the next line
endfor()
Example with version 7.0
define(&x, integer, inttostr(@(1, 1, 10)))
if(&x = 1)
setstyle(&bluefont)
elseif(&x = 2)
setstyle(&redfont)
else()
setstyle(&default)
endif()
Related topics:
©2010 Objectif Lune Inc - 628 -