until


(until test-expression  [expression1  expression2  ... ])

repeats the expression(s) until test-expression evaluates as T (true)

Arguments

test-expression  the expression to end or continue the loop

expression1 ... expression<n>  expressions to evaluate

Return

T always (from evaluating the 'test-expression')

Example

(setq n 0)  (until (> n 5) (print n) (setq n (1+ n))) will print 0,1,2,3,4,5

Alias


Remarks

similar to (while ...) loop



©  Bricsys NV. All rights reserved.