Skip to main content

$lt

The $lt operator checks if the first value is less than the second value.

Input

  • An array containing exactly two values to compare

Output

  • true if the first value is less than the second value
  • false otherwise (including when either value is null)

Examples

Basic Comparison

Result: true

False Comparison

Result: false

Field Value Comparison

Result: true if the temperature field is less than 0, otherwise false

String Comparison

Result: true (lexicographic comparison)