Show Variable ()
show variable [ v]
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. The opposite of the Show Variable () block is the Hide Variable () block.

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 () block.

Some uses of this block are:

  • Displaying statistics at the end of a game:
when I receive [game end v]
show variable [score v]
  • Toggling sliders in a simulation:
forever
hide variable [width v]
hide variable [height v]
hide variable [depth v]
hide variable [contrast v]
wait until <key (space v) pressed?>
wait until <not <key (space v) pressed?>>
show variable [width v]
show variable [height v]
show variable [depth v]
show variable [contrast v]
wait until <key (space v) pressed?>
wait until <not <key (space v) pressed?>>
end

See Also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.