Jump to content
Tom Wellige

3.5 - Usage - Simple Script - Retrieve Variable

Recommended Posts

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

image.png

 

image.png

 

image.png

 

 

The script reads a persistent variable called Welcome and uses a Play Announcement block to announce the current value (which should be the name of a wav file). As nothing else was configured the value is taken from the user scope (default Scope).

 

If you have called the previous example before the content will be Default Welcome.wav. Otherwise the configured default value Beep.wav will be returned.

 

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

 

Index

<< Previous 3.4 - Usage - Simple Script - Store Variable

>> Next 4.1 - Properties - Name


 

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.