# if - else - endif

These three functions provide the ability to selectively execute functions within an action.

if conditionally executes functions based on a specified action test state. These functions may be nested.

eg. action test state is true, if tests true

- if true
- ... execute everything here
- else
- ... execute nothing here
- endif
- ...normal processing here

eg. action test state is false, if tests true

- if true
- ... execute nothing here
- else
- ... execute everything here
- endif
- ...normal processing here

eg. action test state is false, if tests false

- if false
- ... execute everything here
- else
- ... execute nothing here
- endif
- ...normal processing here

eg. action test state is true, if tests false

- if false
- ... execute nothing here
- else
- ... execute everything here
- endif
- ...normal processing here

The else statement is optional. eg. action test state is true, if tests true

- if true
- ... execute everything here
- endif
- ...normal processing here