# is_rule_violated · FT4 Rell API · Chromia Docs (concept)

> function is_ rule_ violated(rule: rule_expression , variables: map<text, gtv>): boolean Detects whether a rule expression is violated. Parameters rule — th

Source: https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.core.accounts/is_rule_violated/

FUNCTION

# is\_rule\_violated

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

[Source](https://gitlab.com/chromaway/ft4-lib/-/blob/development/rell/src/lib/ft4/core/accounts/auth_descriptor_rule_validation.rell#lines-173)

Detects whether a rule expression is violated.

**Parameters**

* **rule** — the rule to check.
* **variables** — the state to check the rules against.

**Returns**

true if the rule is violated, false otherwise.

**See Also**

* [rule\_expression](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.core.accounts/rule_expression/) — for an explanation of rule violation

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-rell/-f-t4%20-library/lib.ft4.core.accounts/is_rule_violated.html)Generated API reference, mirrored from the live docs
