FOREACH
Syntax FOREACH list runlist
 
Explanation

The FOREACH command runs a list of commands repeatedly. On each run, it substitutes all occurrences of a question mark "? with one element of a list given as its first input.

See also FOR.
 

Examples FOREACH [JOHN MARTHA][print "?]
JOHN
MARTHA

TopIndex