Jump to content
Tom Wellige

3.4 - Usage - Simple Script - Store Variable

Recommended Posts

Within the download package of this project you will find an rse folder. This folder includes the file Store.rse. This is a small example script to demonstrate the usage of persistent variables. It shows how to store a value persistently into the scope of the current user.
 

image.png

 

image.png

 

The script creates a variable called Welcome for the current script user (Default Scope: User) and stores the name of a SwyxWare default announcement into it.

 

To install this script generate a new GSE rule, via the menu File | Import... select the file Store.rse, save the rule, close the GSE and make sure the rule is activated to give it a try.

 

The next example will read this persistent value and announce it.

 

 

Index

<< Previous 3.3 - Usage - Retrieve a value

>> Next 3.5 - Usage - Simple Script - Retrieve Variable


 

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.