When a condition is added to another compound conditional statement, the newly added condition will be ANDed to the condition already present:
Example:
If Filename = bob.txt
Now add another condition:
If Filename = bob.txt and If Filesize < 100 MB
When the second condition being added is the SAME condition type as the previous one, the newly added condition will be ORed to the previous condition.
If Filesize < 200 MB
Now add another same condition:
If Filesize < 200 MB or If Filesize > 500 MB
If there are more than two conditions already existing in a compound conditional line, and another condition is added (regardless of condition type), the new condition will use the same logical operators that are already present for that compound statement.
If Filesize < 200 MB or If Filesize > 500 MB
Now add another same condition:
If Filesize < 200 MB or If Filesize < 400 MB or If FileName = rob.txt
You can change the AND and OR operator values by clicking the and or the or hyperlink. Please note that logical operators separating conditional statements must be the SAME across the entire compound statement. You cannot mix and match AND and OR statements. When changing the logical operator for a compound conditional statement, ALL subsequent logical operators for that statement also change to match that operator. This is necessary to prevent problems with evaluation precedence, especially in conditional blocks with more than 2 conditional expressions to evaluate. There are ways around this limitation, discussed in Evaluating Expressions.
Example:
If Filename = bob.txt
Now add another condition:
If Filename = Bob.txt and If Filesize < 100 MB
Now add another condition:
If Filename = Bob.txt and If Filesize <100 MB and If group is one of Admins
Now I click one of the AND hyperlinks to change it to OR. Resulting line:
If Filename = Bob.txt OR If Filesize <100 MB OR If group is one of Admins
Example:
If Filesize is < 200 MB
Now add another condition:
If Filesize < 200 MB or If Filesize > 500 MB
Now I click the OR hyperlinks to change it to AND. Resulting line:
If Filesize < 200 MB and If Filesize > 500 MB
Note that in the second example, the statement will never evaluate to true. It is your responsibility to change the comparison types (from > to something else) or the comparison values, or switch back to using the OR logical operator to avoid creating expressions that can never evaluate to true.
Adding a Condition to an Event Rule