Skip to main content
Comparison helpers return boolean values for use in conditionals.

gt (Greater Than)

Returns true if the first value is greater than the second.
Output: true

lt (Less Than)

Returns true if the first value is less than the second.
Output: true

gte (Greater Than or Equal)

Returns true if the first value is greater than or equal to the second.
Output: true

lte (Less Than or Equal)

Returns true if the first value is less than or equal to the second.
Output: true

eq (Equal)

Returns true if both values are equal (loose equality).
Output: true (if status is “active”)

neq (Not Equal)

Returns true if values are not equal.
Output: true (if status is not “deleted”)

Combining Comparisons

Use with logical helpers for complex conditions:

Practical Examples

Pricing Tiers

Stock Status

Order Status Badge

Discount Eligibility

Overdue Highlighting

Rating Display