Prism · Predicates

$gt

True when the first value is greater than the second. Numbers compare by size, strings by alphabet.

The source
{ age: 36 }
The config
{ $gt: [{ $ref: '$.age' }, { $const: 18 }] }
What comes out
true
Output matches the expected value

Runs in this page on the installed package. The input and the expected output are defined by the example.