IntersectionStatementParser
Return the first branch only when every expression is true.
all takes a list of expressions and returns the first branch only if every one of them is true. It is the counterpart to any.
For template authors
Syntax
{all(expression|expression|...):true message|false message}Examples
Range checks are the common case, since if only compares two values at a time:
Aliases
all, and, intersection
For developers
Register the parser
import { Interpreter, IntersectionStatementParser } from 'tagscript';
const ts = new Interpreter(new IntersectionStatementParser());Behaviour
Both the parameter and the payload are required. Every expression is evaluated, then the results are AND-ed together, with no short circuit.
API reference
Last updated on