I can not write code to say:
After adding 1 to variable
if the name of the stack with this variable exists then go to the stack, otherwise erase the button.
(Note: names have already incremented with this method)
To do the same with "add -1 to tNum" I have no problem because the final tNum is 0, but in this direction tNum is variable and is not known before.
I tried this kind of reasoning, but without success.
Code: Select all
add 1 to tNum
If the name of stack ("F" & tNum & " " & Nvar) = true
then go stack ("F" & tNum & " " & Nvar)
else hide button 2