while loop
Sun, 11/10/2015 - 07:31
How do you use a while loop ?
While this repeat loop works:
MAKE "i 0 REPEAT 5 [ PRINT :i MAKE "i :i + 1 ]
this while loop never retruns and crashes the editor:
MAKE "i 0 WHILE [ :i < 5 ] [ PRINT :i MAKE "i :i + 1 ]
Andreas
Tue, 13/10/2015 - 16:39
#2
More controls
There are many program controls in Logo I have not tried before... see https://vrmath2.net/content/logo-guidereference#sec8
The ignore expr is an interesting one. The forever is going to crash VRMath2 Editor as there is no way to stop jslogo unless close the browser....