is_rule_violated
Detects whether a rule expression is violated.
Return
true if the rule is violated, false otherwise.
Parameters
rule
the rule to check.
variables
the state to check the rules against.
See also
rule_expression
for an explanation of rule violation