$$and
Evaluates to true
if all values provided will evaluate to true
(using the Truthy logic).
Usage​
{
"$$and": [ /* values */ ]
}
"$$and:{input}"
Returns​
boolean
Arguments​
Argument | Type | Values | Required / Default Value | Description |
---|---|---|---|---|
Primary | array | Yes | Values to check |
Examples​
Input
Definition
Output
[2,3]
{
"$$and": [
{ "$$is": "$[0]", "eq": 2 },
{ "$$is": "$[1]", "eq": 3 }
]
}
true
[2,4]
{
"$$and": [
{ "$$is": "$[0]", "eq": 2 },
{ "$$is": "$[1]", "eq": 3 }
]
}
false
[2,4]
"$$and:$"
false