Skip to main content

$gte

The $gte operator checks if the first value is greater than or equal to the second value.

Input

  • An array containing exactly two values to compare

Output

  • true if the first value is greater than or equal to the second value
  • false otherwise (including when either value is null)

Examples

Greater Than

Result: true

Equal Values

Result: true

Less Than (Returns False)

Result: false

Field Value Comparison

Result: true if the score field is greater than or equal to 60, otherwise false