is your variable a Game variable or a Local/Line variable? make sure it's Game variable (you can see what type of variable you have in its lore)
You should also check all your variables while you or someone else is in Play mode by running /p vars (/plot vars)