> For the complete documentation index, see [llms.txt](https://docs.flexikanban.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flexikanban.ai/components/forms/tools/variables.md).

# Variables

You can create variables within a form and with the help of functions feature set up complex calculations, conditions, conditional styling and etc. &#x20;

Below is example of setting up variable and using it for conditional hiding a section.

{% hint style="success" %}
&#x20;Form in the example below is tied up to Account object
{% endhint %}

Open "Tools" menu(1) and click "Variables" option (2):

<img src="/files/B2I7YGWCzcwgp1BYv1Ww" alt="" class="gitbook-drawing">

On "Variables" popup click "Add Variables" button (3):

<img src="/files/MAPqzdzUkMv3FbRwDpm8" alt="" class="gitbook-drawing">

Provide variable "Name" (4), set variable "Type" (5) and click pencil icon (6) to open value builder:

<img src="/files/FdGvF9q6ipv2lfxNXcwu" alt="" class="gitbook-drawing">

Choose context object (7) and  object field (8). Click "+" button to insert merged field (9):

{% hint style="success" %}
For more information about working with context objects please refer following documentation chapter:

[Context Objects](x-screensteps-link://screensteps.com)
{% endhint %}

<img src="/files/JctxjkRIrZ45wYZrJHBi" alt="" class="gitbook-drawing">

Select Function (10) to use  and click "+" button (10) to insert function:

<img src="/files/0Yb2wEyPqmz35VhETseW" alt="" class="gitbook-drawing">

Now using merged field and functions build an expression (12) and click "Save" (13).

{% hint style="success" %}
To use the functions or calculations inside of variable you have to build a formula like: FORMULA\[SQRT(4) + (2\*3)]
{% endhint %}

<img src="/files/4NbgQSAIU7STsOLzi1CB" alt="" class="gitbook-drawing">

{% hint style="success" %}
Above expression first casts number typed value to text and then checks if final string ends with '9'. It will return 'true' if string does end with '9' and 'false' if it doesn't.
{% endhint %}

Save variable (14) and save the form (15):

<img src="/files/XkfNrmbQvl5uAp5AWMvd" alt="" class="gitbook-drawing">

{% hint style="success" %}
Button "Dependencies" (16) helps to find where this variable is used.
{% endhint %}

Select [Section](x-screensteps-link://screensteps.com) title and create new [Conditional style](x-screensteps-link://screensteps.com) using configured variable:

<img src="/files/3wgjTdwAyU3cYIiTmsbm" alt="" class="gitbook-drawing">

{% hint style="success" %}
Above conditional style will hide section if 'Account Number' value ends with symbol other than '9' and will show it for cases when it ends with '9'.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.flexikanban.ai/components/forms/tools/variables.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
