Language Reference
Loops
Repeat logic with readable for-each and while loops.
Loop types
for eachiterates lists.whilerepeats while true.- Use ranges with plain English.
For each loops
Iterate through lists and collections in clear, English-like statements.
for_each.pln
create a list named numbers with [1, 2, 3, 4]
for each number in numbers do print number
Ranges and counters
Use natural language to loop through ranges of numbers.
range.pln
print numbers from 1 to 3
While loops
Repeat until a condition becomes false.
while.pln
set count to 0
while count is less than 3 do
print count
set count to count + 1