(values: any[]): booleanArguments
array
An array of values over which to perform a logical and.
Examples
Two true values:
_and:
- true
- trueReturns: true
Array of true and false values:
_and:
- true
- true
- true
- falseReturns: false
Check if two boolean inputs are true:
_and:
- _state: confirm_accept_terms
- _state: confirm_accept_privacy_policyReturns: true if both inputs are true
Truthy values:
_and:
- "Hello"
- 42
- []
- key: valueReturns: true
Falsy values:
_and:
- true
- nullReturns: false
_and:
- true
- 0Returns: false
_and:
- true
- ""Returns: false
