Skip to main content

Conditions

If condition

func main()={
if ( 2<3 )
{
printLine("foo");
}
else if (true)
{
print("c");
}
}

While Loop

func foo() = {
int x = 3;
while (x<=4)
{
x++;
print(x);
}
}