Script Flow Control with IF Commands

You can use IF/ELSE instructions to execute commands on specific conditions only. In connection with the goto instruction and labels you can also program loops.

  • The commands within a condition are indented:

     

Use the command Indent/Outdent command to control which commands are to be executed within an IF and/or ELSE instruction.

Indent command

For commands within an IF instruction: Indents this command one level. An IF instruction applies to all commands that are indented in relation to this IF instruction.

Outdent command

For commands within an IF instruction: Outdents this command one level.

You can indent or outdent several commands at a time.

If you delete an IF and/or ELSE instruction, please don’t forget to outdent the respective (conditional) commands (this does not happen automatically). These commands are not executed any more as long as they are outdented.