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