Skip to main content

$$or

Evaluates to true if any of the values provided will evaluate to true (using the Truthy logic)

Usage​

{ 
"$$or": [ /* Values to check */ ]
}
"$$or:{input}"

Returns​

boolean

Arguments​

ArgumentTypeValuesRequired / Default ValueDescription
PrimaryarrayYesValues to check

Examples​

Input

Definition

Output

[
2,
3
]
{
"$$or": [
{
"$$is": "$[0]",
"eq": 2
},
{
"$$is": "$[1]",
"eq": 3
}
]
}
true
[
1,
3
]
{
"$$or": [
{
"$$is": "$[0]",
"eq": 2
},
{
"$$is": "$[1]",
"eq": 3
}
]
}
true
[
2,
4
]
{
"$$or": [
{
"$$is": "$[0]",
"eq": 2
},
{
"$$is": "$[1]",
"eq": 3
}
]
}
true
[
1,
4
]
{
"$$or": [
{
"$$is": "$[0]",
"eq": 2
},
{
"$$is": "$[1]",
"eq": 3
}
]
}
false
[
null,
1
]
{
"$$or": [
"$[0]",
"$[1]"
]
}
true
[
null,
null
]
{
"$$or": [
"$[0]",
"$[1]"
]
}
false
[
null,
0
]
"$$or:$"
false
[
1,
0
]
"$$or:$"
true