Applies from Version: | WEBcnx 2024.1 | Applies to Version: |
Description
The AND function takes a number of Boolean parameters and ensures that they all resolve to True.
Syntax
AND(bool1, bool2, ...)
This function can take any number of Boolean parameters (though it must contain at least one).
Returns
A Boolean.
Remarks
- Returns True if all of its parameters are true, False if so much as one of its parameters are false.
Examples
Imagine we have two boolean fields in an Item Type, with the identifiers Height and Width.
Expression | Description | Result |
---|---|---|
AND(2 < 4, 3 < 4) | Checks if both 2 and 3 are less than 4. | True |
AND(2 < 4, 5 < 4) | Checks if both 2 and 5 are less than 4. | False |
AND(Height > 10, Width > 10) | Checks if our Height and Width fields are both greater than 10. | True or False, depending on Task Values |