If Statements

Use the “if” statement to test for the following three conditions for a data source:

  1. Whether it is disabled
  2. Whether a run is active
  3. Whether a run is scheduled

The keywords “disabled”, "active", and “scheduled” are used to indicate the condition being tested. You must follow these keywords with a data source name and the keyword “then”. Optionally, you can precede keywords with the buzzwords “run”, “data source”, or “source”.

To reverse the test, you can place the keyword “not” in front of expressions that follow the keyword “if". The syntax of these expressions is summarized as follows:

[not] {[run] | [[data] source]} active name

[not] {[run] | [[data] source]} disabled name

[not] {[run] | [[data] source]} scheduled name