Previous Topic: General ConsiderationsNext Topic: Batch-Control Event Condition


Syntax for Conditional Expressions

The conditional expression syntax shown below applies when the command syntax specifies conditional-expression.

Syntax

                                ┌─ AND ─┐
                     ┌──────────┴─ OR ──┴──────────┐
►►───┬─────────┬─────▼─┬───────┬─ test-condition ──┴───┬─────┬────────────────►◄
     └─ NOT ( ─┘       └─ NOT ─┘                       └─ ) ─┘

Parameters

NOT

Specifies that the opposite of a condition fulfills the test requirements.

The opposite of the entire conditional expression can be specified by enclosing the expression in parentheses and preceding it with NOT.

test-condition

Specifies the condition being tested and can include parentheses.

AND

Specifies the expression is true only if the outcome of both test conditions is true.

OR

Specifies the expression is true if the outcome of either one or both test conditions is true.