Boolean Array Property Condition
A boolean array property condition is meant to evaluate a Property of type booleanArray
– so an array of boolean values.
Schema
json
{
"propertyId": "er26asd54as",
// Type specific attributes
"type": "booleanArray",
"propertyArrayQuantifier": "every",
"operator": "isTrue"
}
Attributes
type
- Type:
"booleanArray"
- Required
Denotes the condition object as a boolean array property condition.
propertyArrayQuantifier
- Type:
Quantifier
- Required
Tells the system how many of the property array values need to evaluate to true based on the operator
, operandsQuantifier
, and operands
.
operator
- Type:
BooleanArrayConditionOperators
- Required
The operator to use when comparing an operand of the operands
array against one of the property array values.
Utility Types
BooleanArrayConditionOperator
Type: "isTrue" | "isFalse" | "hasElements" | "hasNoElements"
Operators and what they do:
"isTrue"
: Checks if a property array value istrue
(JSvalue === true
)."isFalse"
: Checks if a property array value isfalse
(JSvalue === false
)."hasElements"
: Evaluates totrue
, if the property array has at least one element/value. Does not look atpropertyArrayQuantifier
,operandsQuantifier
, andoperands
."hasNoElements"
: Evaluates totrue
, if the property array no elements/values. Does not look atpropertyArrayQuantifier
,operandsQuantifier
, andoperands
.
Quantifier
Type: "some" | "every" | "notAny" | "notEvery"
Quantifiers and what they do:
"some"
: Applies JS arraysome
logic to property array values or operands array values. Example:operands.some(operand => /* ... */)
"every"
: Applies JS arrayevery
logic to property array values or operands array values. Example:operands.every(operand => /* ... */)
"notAny"
: Applies negation to JS arraysome
logic to property array values or operands array values. Example:!operands.some(operand => /* ... */)
"notEvery"
: Applies negation to JS arrayevery
logic to property array values or operands array values. Example:!operands.every(operand => /* ... */)