Set Variable¶
The Set Variable block allows you to save a value into the application's global memory. This value can be a number, text, object, or even the result of a JavaScript expression. Once saved, you can retrieve it later using the Get Variable block.
Inputs¶
- Key: The name you want to give to this variable.
- Value: The data you want to store. This can be static text, a number, or dynamic content using JavaScript (by starting with
js:).
Logic¶
- The block takes the Value you provide.
- If the value starts with
js:, it executes it as code to calculate the final result. - It saves this result under the name specified in Key.
- The saved value is passed as the output of this block.