Sexy Scripting Language Wiki
An s-expression scripting language for highly demanding video games
Status: Beta
Brought to you by:
theabstraction
Basic loops have the following syntax:
(while <condition> )</condition>
The loop evaluates the binary valued expression <condition> and then executes if the condition
evaluates to true. The process is repeated until <condition> is false.</condition></condition>
If executes a (break) directive, which is not itself in some other loop construct, then
execution of the loop will terminate. If executes a (continue) directive, which is not itself in some other loop construct, then the evaluation and execution of the loop begins again.
Example:
(Int32 i = 0)
(while (i < 5)
(i = (i+1))
)
(i = 0)
(while true
(i = (i+1))
(if (i == 5)
break)
)
)
(i = 0)
(while true
(i = (i+1))
(if (i != 5)
continue
else
break
)
)