u − v for binary EqQ/NeQ, or just u for the unary form (compare to 0).
(args: Json[], ctx: Ctx)
| 586 | if (json === 'False') return false; |
| 587 | // SimplifyFlag and friends — not in steps mode |
| 588 | return fail(`bare symbol condition '${json}'`); |
| 589 | } |
| 590 | if (!Array.isArray(json)) return fail('non-predicate condition'); |
| 591 | const [head, ...args] = json; |
| 592 | if (head === 'And') return args.every((a) => evalCondition(a, ctx)); |
| 593 | if (head === 'Or') return args.some((a) => evalCondition(a, ctx)); |
| 594 | if (head === 'Not') return !evalCondition(args[0], ctx); |
no test coverage detected