For In
Common syntax
The standard syntax assigns a variable with the elements of a range, and Scriptol writes a range as it is commonly written, with a double dot between two values (or variables).
for int x in 0 .. 10
print x
/for
print x
/for
One-line syntax
If the body of the structure is only one statement, a simplified syntax is used.
for int x in 0 .. 10 print
x
For in list
The for control structure may scan an interal as above, but also a text or an array.
text hello = "hello"
for text t in hello print t
for text t in hello print t
array a = { 1, 2, 3 }