-
Notifications
You must be signed in to change notification settings - Fork 0
5 : Loops
Paulyn edited this page Nov 28, 2025
·
1 revision
LAT supports a single loop type: the when loop, which behaves like a while.
when (condition) ... done
-
Condition is checked before every loop iteration
-
Loop stops when condition becomes false
nat i = 0when (i <
5) print(i) i = i + 1 done
when (true) print("looping") done
(Use with caution.)