Wiki Page, Programming School: Lesson 4: Multiple indents and when

Wiki Page
2017-01-27T10:44:02-07:00

Multiple indentations are only needed when you have another conditional statement (if, when, else, etc.) inside of one.

Example:

i = 1

if (i == 1) then

local i2 = 1

while (i2 <=2) do

print(i2)

i2 = i2+1

end

end