while
Basic Usage:
var count = 0
# Using 'while' loop to execute code while a condition is true
while count < 5 then
show(count)
count = count + 1
endExplanation:
Infinite Loop:
# Using 'while' loop to create an infinite loop
var i = 0
while true then
show(i)
i = i + 1
if i >= 5 then
break
end
endExplanation:
Using with Input:
Explanation:
Nested Loops:
Explanation:
Last updated