Comparison and logical operators
As seen previously, a comparison is identified by the <strong>
element. The operator is specified by the id. Exactly two children are required, both of them must return a comparable value:
is compiled as:
<strong>
comparison can be chained with <and>
, <or>
and <not>
logical operations to make more complex conditions. Both <and>
, <or>
require exactly two children, while <not>
requires only one child:
is compiled as:
This comparisons can be inserted as first child of <ul>
elements to create complex if conditions
Last updated