BEE Lisp Functions Reference

<object> LOOP (condition body)

Executes loop body until its condition is false. Returns result of last executed command in loop.

Example:

(SETF n 5)

(LOOP (> n 0)

     (PRINT n )

     (PRINT “\n”)

     (SETF n (– n 1))

)   ;  5 4 3 2 1