The Compound Conditional Statement

If Filename = Bob.txt AND If User is Member of Admins, Users, Power Users…

If this expression were evaluated from left to right, the results would not match our expectations:

If (((F and MA) or U) or PU)

Instead, EFT Server evaluates the conditional statement first as its own atomic unit and then evaluates the resulting expression from left to right:

If (F and (MA or U or PU))

This allows you to create expressions that contain order-of-precedence grouping without having to use parenthesis. The evaluative OR statement is hidden inside the conditional statement, as long as that conditional statement can evaluate against multiple criteria.

Only the following conditions can evaluate against multiple criteria (strings):

To define multiple criteria for a condition

  1. If you are creating a new condition, click a condition, then click Add Condition to add it to the Rule box. To learn more about available conditions, see Conditions.

  2. If you are adding to an existing condition, highlight the condition in the Rule pane, then click the condition you want to add from the Conditions list. The condition appends to the existing one and adds a logical operator (AND/OR).

  3. Click the logical operand to change it. Note that all of the logical operators must be the same for that condition.

If you need to use more complex criteria using AND and OR, you can use wildcard logic to create any logic that wildcards support. For example, if you add the File Name condition to the Rule pane, you can then define the path mask using complex logic with wildcards.

Related Topics

Using Conditions

Adding a Condition to an Event Rule

Condition Placement

Changing Condition Placement

Condition Evaluation

Else Clauses

Logical Operators

Evaluating Expressions

List of Conditions