Documentation Center

Controlling program flow

One of the advantages of programming your own macros is the ability to automate tasks. You can instruct Passolo to do the same task over and over again.

To do this you need to be able to control the program flow. If you want Passolo to do the same task twice you have to execute the macro twice. This might work if you want to do something two or three times, but it becomes annoying quite quickly. You may also be interested in controlling what Sax Basic does based on certain values (a classic "if something then do something else" problem). This section will illustrate how to deal with these problems in Sax Basic.