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

> function are_ rules_ violating(rules: gtv, variables: map<text, gtv>): boolean Checks whether any of the rules in the gtv are violated currently. Throws "I

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

FUNCTION

# are\_rules\_violating

```signature
function are_rules_violating(rules: gtv, 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-143)

Checks whether any of the rules in the gtv are violated currently.

Throws `"INVALID RULE"` if the gtv does not start with "and", implying it's a simple rule,
but the length is not 3 (operator, variable and value).

**Parameters**

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

**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
* [account\_auth\_descriptor.rules](https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.core.accounts/account_auth_descriptor/) — to understand the conditions under which this function throws.

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