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

> function variable_ value(variable: rule_variable , variables: map<text, gtv>): integer Extracts the required variable value from the state Parameters varia

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

FUNCTION

# variable\_value

```signature
function variable_value(variable: rule_variable, variables: map<text, gtv>): integer
```

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

Extracts the required variable value from the state

**Parameters**

* **variable** — the variable to extract
* **variables** — the state to extract the variable value from

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