Control flow lets your program decide what to do based on conditions.
if is_ready then
board:("Ready!")
but is_waiting then
board:("Waiting...")
else
board:("Not ready.")
end
Explanation: Use if
followed by a condition and then
.
but
acts like else if
.
else
catches all other cases. Always close with end
.
this is_ready is enabled
this is_waiting is disabled
Conditions test variables or keywords like enabled
or disabled
.