Prism · Predicates
$gt
True when the first value is greater than the second. Numbers compare by size, strings by alphabet.
{ age: 36 }{ $gt: [{ $ref: '$.age' }, { $const: 18 }] }true
Runs in this page on the installed package. The input and the expected output are defined by the example.