$$gte
Checks if value is greater than or equal to another value
Usage​
{
"$$gte": /* A value which `value` should be greater than or equal to (value >= input) */,
"value": /* any */,
"strict": false /* boolean */
}
"$$gte(<value>,[strict]):{input}"
note
Concrete values in the usage example are default values.
Returns​
boolean
Arguments​
| Argument | Type | Values | Required / Default Value | Description |
|---|---|---|---|---|
| Input | object | Yes | A value which value should be greater than or equal to (value >= input) | |
value | any | Yes | Value to check against | |
strict | boolean | false/true | false | Disable input type coercion between string to numbers (if value is number) |
Examples​
Input
Definition
Output
"B"
{
"$$gte": "A",
"value": "$"
}
true
"A"
{
"$$gte": "B",
"value": "$"
}
false
5
{
"$$gte": 4,
"value": "$"
}
true
4
{
"$$gte": 4,
"value": "$"
}
true
3
{
"$$gte": 4,
"value": "$"
}
false
5
{
"$$gte": "4",
"value": "$"
}
true
5
{
"$$gte": "4",
"value": "$",
"strict": true
}
false
[
1,
2
]
{
"$$gte": [
1
],
"value": "$"
}
true
{
"a": true,
"b": true
}
{
"$$gte": {
"a": true
},
"value": "$"
}
true
"B"
"$$gte($):A"
true
5
"$$gte($):4"
true
5
"$$gte($,true):4"
false