Is there a way to stop a script - mid script within an if statement?
For example - if I want to have a single button which hides and shows a controls
if controlA = hidden
then show controlA
exit
if controlA = visible
then hide controlA
exit
without those stops the button hides, then immediately shows the controlA