6.0

Table Of Contents
116
Language Reference
4
number2 — Integer value with which to divide number1.
Code Sample Example
This example uses MOD to distinguish between odd and even numbers.
Example
define(&i,integer, 1)
%Define loop variable
for(&i,1,1,10) %Set loop
show(inttostr(&i)+' is an') %Display number
if(mod(&i,2)=1)
%Determine if number is odd or even
show(' odd ')
elseif()
show(' even ')
endif()
show('number.')
crlf()
endfor()
MoveTo/RMoveTo (procedure)
Moves the current point to the specified coordinates.
Syntax
moveto( x, y )
Arguments
x, y — Measure values representing the new horizontal/vertical position, in inches, of the current point. In
rmoveto, these values are relative to the current point of origin. In moveto, they are absolute values.
Code Sample Example
This example displays a triangle within a rectangle.
Example
rectstroke(.5,.5,2,2) %Draw rectangle
moveto(1,1) %Reset current point