while
Iterates through some lines of code whilst a condition remains true
Syntax
while condition
(statement)*
end
Description
The while command executes some code whilst a condition remains true
Warning - ensure that the condition can at some point become false, otherwise the code will execute endlessly
Examples
a=99
while a>1
a = a/2
end