Checking for existence of a variable


#1

1) Give a description of the problem
I have a few pistons which rely on global variables. For the purposes of completeness, I’d like to know if I can create a single piston which can be ran manually, which will check for the existence of a particular variable. If it doesn’t yet exist, this piston could then create it and set a value.

Is this possible?

2) What is the expected behaviour?
(PUT YOUR INFO HERE)

3) What is happening/not happening?
(PUT YOUR INFO HERE)

4) Post a Green Snapshot of the pistonimage
(UPLOAD YOUR IMAGE HERE)

5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)

Wasn’t sure how to best submit this. Thanks in advance! =)


#2

A piston cannot create variables. That step has to be done manually.
(although any piston can update a @global, or check on the data contained)


#3

Variables cannot be created programmatically as I know. I have not tried to check for existence of a variable/global yet but if it can be done maybe you can then send a notification to the user to first create them if not found.


#4

*blows smoke from his fingertips*


#5

cheers, that’s a shame. thanks for the swift replies.