Statements - xkp/Doc GitHub Wiki
The main objective of the language is to be extremely familiar to developers, so you can expect that most code you would write for (say) java script or c# to work on xs. Well, at least most of them.
the typical:
on click()
{
for(int i = 0; i < 20; i++)
{
if (i > 5)
{
while(i > 3)
{
switch(i)
{
case 4:
{
break;
}
}
}
}
}
}
So that covers most of it, in addition xs supports an iterated for:
method foo(array bars)
{
for(var bar in bars)
{
//do whatever you do with bars
}
}