ELSE
- Last Updated: November 20, 2026
- 1 minute read
- Semaphore
- Version 5.13
- Documentation
The ELSE rule is an alias for the COMBINE rule which is only used as an optional 3rd child of an if rule.
Parent
- IF
- note: it is an error for this rule to have any other parent than an if
Score calculation
Scores as a COMBINE rule
Evidence calculation
The evidence is the union of all its children’s evidence if it is selected by the if rule
Attribute information
- any attribute
Children restrictions
Any rule other than those restricted to a specific parent
Example
<if stem="1" > <condition> <text data="cat" /> </condition> <then weight="80" > <text data="cat" /> </then> <else weight="40" > <text data="dog" /> </else> </if>
This document mentions both cats and dogs
The else rule will be discarded - so even though it will score 0.4 and have evidence “dogs” this will not be passed up to the parent if rule
The parent if will have a score of “0.80” and 1 evidence phrase (“cats”)
Whilst on
This document only mentions dogs
The else rule will be used as the score and evidence for the if rule