See also Applications (left menu), Publications, Advanced Features (after selecting an Application).
264 - SCRIPTING: FLOW CONTROL VIA GRAPH FILE UI
This application note discusses program flow control that is predicated on a user’s interaction with graphical interfaces, namely, buttons, scroll lists, and dialog boxes.
The key idea is that the calls to the macro functions are configured into a control loop. Also key is that those functions that have UI widgets that await user action, are not followed by any executable statements, they are wholly contained within a function block. In addition, all variables used at decision points should be either global or at script level so that all functions are cognizant of the variables’ existence and value.