Eng:Hide Variable () (block)

The Hide Variable  block is a Variables block and a Stack block. The block hides the specified variable's Stage monitor.

Example Uses
In projects that use variables' Stage monitors to display things, the displays may have to hide and show at times; this can be done with the Show Variable.

when sprite clicked //a button to lock-in or open the value editing if <(editable) = [yes]> hide variable [width v] set [editable v] to [no] else show variable [width v] set [editable v] to [yes]
 * Hiding a slider when a value is not editable

when gf clicked set [points v] to (0) set [status v] to [running] show variable [points v] repeat until > go to x: (pick random (-240) to (240)) y: (pick random (-180) to (180)) set [lastTime v] to (timer) wait until <<((timer) - (lastTime)) > (.3)> or < and >> if < and > then change [points v] by (1) play sound [pop v] if <(points) = [10]> then set [status v] to [win] end end if <(timer) > (10)> then set [status v] to [lose] end end broadcast (status) wait (2) secs hide variable [points v]
 * Hiding the score at the end of a game

when I receive [game end v] hide variable [score v]
 * When the variable has no use anymore