Prism · Predicates

$neq

True when two values differ. The opposite of $eq, compared the same way.

The source
{ role: 'editor' }
The config
{ $neq: [{ $ref: '$.role' }, { $const: 'admin' }] }
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.