Hey there! In this guide, we'll dive into the world of variables in Xano, a powerful feature that allows you to manipulate your data like a pro. Whether you're a no-code enthusiast, a citizen developer, a seasoned programmer, or part of a startup or small business, this guide is for you. Let's get started!
Variables are a way to store and manipulate information or data. Oftentimes, the data in your database tables might not be in the exact format you want to present it in your front-end application. This is where variables come into play. During the API call, when your API pulls the data from the database, you can use variables to process and manipulate the data, ensuring it's displayed in the desired format on your front-end.
Let's say you have a "Deals" table in your database, and you want to display the "promoCode" field from that table in your app. Here's how you can do it:
What if you want to display the merchant's name in all capital letters for aesthetic purposes? No problem! Follow these steps:
Let's say your app deals with gift cards, and the "amount" field in your "Deals" table represents the discount in dollars. However, you want to display the amount in euros for your European friends. Here's how you can achieve that:
Sometimes, you might want to display a list of data from your database. For example, let's say you want to display a list of all the discount amounts from your "Deals" table:
What if you want to add up all the discount amounts from the list you just created? Here's how you can do that:
As you can see, variables in Xano provide a ton of flexibility and power when it comes to manipulating your data. Whether you need to format text, convert units, create lists, or perform calculations, variables have got you covered. Don't be afraid to experiment and explore the various filters and options available in Xano's documentation. Have fun manipulating your data like a pro!
This transcript was AI generated to allow users to quickly answer technical questions about Xano.
I found it helpful
I need more support