Language Commands

5.9.1 Language Commands


[def] [for] [repeat]

def

name value def -

This operator assigns the value value to the name name.


for

initial step final instructions for -

This operator repeats the instructions a number of times depending on the first three arguments. Before the instructions are executed the first time, initial is pushed onto the stack. Thereafter, initial + increment * "times through loop" is pushed on the stack before each execution. This continues untill the amount to be pushed on the stack would exceed final.


repeat

count instructions repeat -

The repeat operator repeats the instructions for count times.


David Maxwell, who is still writing this, would like to hear your comments and suggestions. And remember, parts of this manual are based on P.J. Weingartner's work: A First Guide to PostScript.