is_rule_violated

function is_rule_violated(rule: rule_expression, variables: map<text, gtv>): boolean(source)

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