Show Variable ()
2.0 Show Variable ().png
Category Variables
Type Stack
Introduced in 1.3

The Show Variable () block is a Variables block and a Stack block. The block shows 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 Hide Variable ().

Some popular uses are:

  • Displaying statistics at the end of a game:
when I receive [game end v]
show variable [score v]
  • Toggling sliders in a simulation:
when [space v] key pressed
show variable [width v]
show variable [height v]
show variable [depth v]
show variable [contrast v]
  • Constantly keeping a variable at the front layer:
when gf clicked
forever
show variable [score v]

See Also