A role stays while the condition is met
A rule consists of an attribute, a type (“Text”, “Number” or “Yes / no”), a condition, a value and a role. The condition is = everywhere, and for numbers also ≥ and ≤. Text is compared without regard to case. The example has two rules: rank ≥ 5 gives “Officer”, rank ≥ 10 gives “Commander”. Only roles assigned by a rule are removed, and roles given by hand stay.