How to make use of the 'Set Variable' node in Peaka
Learn how to use the ‘Set Variable’ node in your Peaka workflows to create and manage global and page variables
This article provides an overview of the ‘Set Variable’ node in Peaka and explains its role in creating and managing global and page variables.
![set variable flow node](https://cdn.peaka.com/flows/set-variable-1.png)
What is the ‘Set Variable’ Node?
The ‘Set Variable’ node is a fundamental component of Peaka that allows you to create and manage variables within your workflows. These variables can be either global or page-specific, depending on your requirements.
![parameters of a set variable node flow](https://cdn.peaka.com/flows/set-variable-3.png)
Creating Global Variables
When you use the ‘Set Variable’ node to create a global variable, it becomes accessible and usable throughout your entire application. You can set its initial value, and it retains its value between different pages and interactions.
![Creating Global Variables](https://cdn.peaka.com/flows/set-variable-2.png)
Creating Page Variables
Page variables, on the other hand, are specific to the current page of your application. They are ideal for storing temporary or context-specific data that is only relevant within the scope of the current page.
![Creating Page Variables](https://cdn.peaka.com/flows/set-variable-4.png)
Conclusion
Using the ‘Set Variable’ node empowers you to manage and manipulate data efficiently within your workflows. Whether you need to store user preferences, maintain state information, or manage temporary data, this node offers flexibility and control over your project’s variables.