# Variable

<figure><img src="https://951987241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVPontcfIF8v0iocPko5l%2Fuploads%2FlB73SJAWr8BPm00DhUvJ%2Fvariables.png?alt=media&#x26;token=f6153913-9dcf-4ce4-b403-81c173acc627" alt=""><figcaption></figcaption></figure>

Variables allow you to store user input and reuse it throughout the funnel.They are primarily used for personalization. Variables let you change text, content, and logic based on what a user typed, selected, or triggered earlier in the funnel. This makes it possible to create dynamic experiences instead of showing the same content to every user.

Common examples include:

* Showing the user’s name
* Displaying different text based on selected answers
* Calculating values such as dates or totals
* Customizing pages and paywalls based on intent

***

#### Variable Types <a href="#variable-types" id="variable-types"></a>

Zellify supports two types of variables: Simple Variables and Advanced Variables.

***

#### Simple Variables <a href="#simple-variables" id="simple-variables"></a>

<figure><img src="https://951987241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVPontcfIF8v0iocPko5l%2Fuploads%2FUSOzHdFhDXhMqZwBaZxk%2Fefvev4.png?alt=media&#x26;token=bd894648-5631-4ca1-9843-693210a73171" alt=""><figcaption></figcaption></figure>

Simple Variables are used for straightforward personalization.They allow you to:

* Store a value entered in a text input component
* Display specific text based on an answer selected in a question component

These variables are ideal for most use cases, such as greeting users by name or changing copy based on a single choice.

***

#### Advanced Variables <a href="#advanced-variables" id="advanced-variables"></a>

<figure><img src="https://951987241-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVPontcfIF8v0iocPko5l%2Fuploads%2Fj1IemcKFvy6aeaMa3jxQ%2Fhgjfcfc%5C%5D.png?alt=media&#x26;token=22481b16-310c-4cc9-ac6a-05cdba51b425" alt=""><figcaption></figcaption></figure>

Advanced Variables are used when you need more control or logic.They allow you to:

* Create conditions based on multiple variables
* Perform calculations using one or more variables
* Generate values dynamically, such as future dates
* Use JavaScript to fetch or compute data from external sources

Advanced Variables make it possible to build highly customized and data-driven funnels.

***

#### Using Variables in Content <a href="#using-variables-in-content" id="using-variables-in-content"></a>

Once a variable is created, it can be used anywhere text is supported in the funnel.To display a variable, use the following format:{{VariableName}}When the funnel runs, this placeholder is replaced with the actual value for the user.

***

#### Why Variables Matter <a href="#why-variables-matter" id="why-variables-matter"></a>

Variables are the foundation of personalization in Zellify.They allow your funnel to respond to user behavior in real time, making each experience feel tailored and relevant instead of static.
