node-json-logic
Package for expressing logical operations in JSON. Useful for storing logical procedures in a database.
Examples of use
var JSONMath = ;var logic = ;var result = logic ;
After this has executed, the value of a
will be false
.
You can also pass in an array of operations to perform, and even reference variables inside the procedure
"a": true"b": false"c":"operation": "&&""variables":"a""b""c": "c"
After this the value of a
will be true
, b
will be false
and c
will be false
.