step
Basic Usage:
# Using 'step' keyword in 'for' loop to specify the increment value
for var i = 0 to 10 step 2 then
show(i)
endExplanation:
Decrementing:
# Using negative value with 'step' keyword to decrement in 'for' loop
for var i = 10 to 1 step -2 then
show(i)
endExplanation:
Floating-Point Step:
Explanation:
Nested Loops:
Explanation:
Last updated