While?

5 views
Skip to first unread message

Forrest Curo

unread,
Dec 11, 2021, 6:58:19 PM12/11/21
to scheme-for-max & scheme-for-pd
Example from Scheme for Max:
(let ((count 0)) (while (< count 3) (post "count:" count) (set! count (+ 1 count))))

in pd, this results in:
s4pd Error:
;unbound variable while in (while (< count 3) (post "count:" count) (set! count (+ 1 count)))

which tells me "while" isn't yet implemented in the pd version.

How can I best do a 'while loop' without it?

Forrest Curo
San Diego
Reply all
Reply to author
Forward
0 new messages