This article provides a step-by-step guide on how to create variables in Peaka.
Accessing Variables
- Navigate to the variables section: Start by clicking on the "Variables" button located at the top of the Peaka interface, as shown in the image below:
- Choose variable type: After clicking on the "Variables" button, you'll have the option to create either "Page Variables" or "App Variables." Select the type of variable you want to create based on your project's needs.
Creating a New Variable
-
Add a new variable: Click on the "New Variable" button
- Name: Assign a unique name to your variable.
- Value: Define the initial value for your variable.
- Type: Select the data type for your variable.
- Save your variable: After providing the required information, click on the "Save" button. Your variable will be created and added to the specified scope, ready for use in your Peaka project.
Conclusion
Variables in Peaka offer a versatile way to store and manage data within your applications. Whether you need page-specific or app-wide variables, Peaka makes it easy to define and utilize them in your projects.