For updates, you should follow me on


Setting custom values to use in the deck


The command to set one or more custom variables in the deck (without asking the user) is setvar

The parameters are;

Each variable name should be lowercase, begin with a letter and contain letters, numbers and the underscore character.

Examples;

 

As with user input, values are stored with the deck (and backups).  Variables can be used when programming deck buttons by prefixing the name with '$'.

 

 

Example - set the countdown variable, then use $countdown to initialise a timer.

 

Set the start value

setvar

countdown=300

 

Set up the timer

countdown

source=Timer

value=$countdown

trigger=22

 

 

 



Prev: Selecting a value from a list  
Next: Using repeat loops in buttons



Privacy
© 2019 8up.uk