Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Sets the named variable to each of the values in the list in turn; for each value, all the other expressions are evaluated in order. The return function can be used to break the iteration. This example uses foreach to print each item in the list:
(foreach ?x (create$ a b c d) (printout t ?x crlf))