You bet. It's odd in JSL, but semicolons are subordinate to commas. So you can have statements in an if statement separated by semicolons.If(,<statements separated by semicolons>).
The IF statement in JSL takes a little getting used to. For readability I use comments that mark the "THEN" and "ELSE" sections.
Regards,
Peter
All actions need to be separated by semicolon and then grouped using parenthesis.
The following example worked.
A=1;
if(A==1, (x=A*1; y=A*2;z=A*3), (x=A^1; y=A^2;z=A^3));
Print(x); Print(y); Print(z);
/*:
1
2
3
//:*/
A=2;
4
8