$cond
Syntax
{
"$cond": [ <condition>, <true_val>, <false_val> ]
}Properties
Field
Description
Required
Returns
Examples
With Magical Autocomplete
Last updated
{
"$cond": [ <condition>, <true_val>, <false_val> ]
}Last updated
{
"$cond": [
{ "$eq": ["$.variables.country", "India"] },
10,
20
]
}