Command separator

It is possible to put two, or more, commands onto one line in SmileBasic. Use  between the commands to do this reliably.

Note that a  in the   or   branch of an   will be considered a separator of commands within that branch, not a separator of the   command from the next command. For example, consider. This is not interpreted as two commands (first command  with   in its   branch, and second command  ) - it is interpreted as one   command, with both   and   in its   branch. In order to have another command follow an, it must be on a separate line (or, to get the same effect, it may be duplicated in both branches).

But sometimes  is not necessary, when it is clear the end of one command is reached and whatever follows must be the beginning of another command. For example,  can also be written , because   makes sense but   does not, so the   must be the start of a new command. Likewise  will work without a command separator. Note however that  will generate a , as will. Also,  is always necessary to separate a   command from the next command. Finally, it is impossible to put a command on the same line after a  (or  ) command.