Create Variable

Variables are one of the most important concepts to understand in Xano. You can think of Variables as containers that hold information. Their sole purpose is to label and store data in memory to be sent to your front-end or used in another function.

When to create a Variable

You want to create a variable when you want to create a temporary object in the function stack to either store an object that you want to return to the front-end, or to use it in a subsequent function.

How to create a Variable

The drop-down on the value field offers multiple options to make it easier to define the value of your Variable.

If you were to display the hello_world_variable then your response would look like this

Hello, world!

In this example, we stored plain text in the variable but you can store any type of object you want!

Last updated