It is possible to turn a variable off if you do not want to see it. For example if a variable relates to a layer which is not visible you may wish to make that variable invisible.
Firstly navigate to the 'Actions' tab in the Variable Settings.
Click edit in the Visibility option.
Create the code required:
If variable 'AddElement' value is true
> Return true
Now if the user chooses to show the element the variable related to that element will appear and visa versa.