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