AND
Require every Boolean expression to be true.
AND:
args: # required
- { arg1 }
- { arg2 }
# ...
Description
AND combines a list of Boolean operations into one check. It returns true when every argument evaluates to true, and false when any argument evaluates to false.
Evaluation short-circuits: the first false argument determines the result, so the remaining arguments are not evaluated. Arguments can include comparisons such as IS_EQUAL, empty-value checks such as IS_EMPTY, or nested AND, OR, and NOT operations.
Return Type
Boolean
Inputs
args is a required YAML list of Boolean expressions, with at least one item.
Use two or more arguments to combine checks. A single-argument AND can be replaced by that argument itself.
Syntax and Example
AND operation with mixed operations:
AND:
args:
- IS_EQUAL:
left:
FIELD:
path: CA10__stateName__c
right:
TEXT: "running"
- NOT_EMPTY:
arg:
FIELD:
path: CA10__publicIpAddress__c
This example checks if an instance is both in the "running" state AND has a non-empty public IP address.
Behavior and Missing Values
The example returns false because its second argument is false. For nullable inputs, validate required values before relying on a Boolean check.