From Test-Scratch-Wiki

Translate: - English - 中文 
Hide List ()
2.0 Hide List ().png
Category List
Type Stack
Introduced in 2.0

The Hide List () block is a Lists block and a Stack block. The block hides the specified list's Stage monitor. This block was added in Scratch 2.0.

The block was originally going to be Hide Monitor (), hiding both variables and lists, but this was changed in the beta.

Example Uses

In projects that use lists' stage monitors to display things, the displays may have to hide and show at times; with the Show List () block, this can be done.

Some popular uses are:

  • Hiding an inventory
when key [z v] pressed
say [You slowly close your backpack.] for (2) secs
hide list [Inventory v]
  • Hiding output
when this sprite clicked
ask [Are you sure that you do not want to see the results? (Y/N)] and wait
if <(answer) = [Y]> then
  hide list [Results v]
end
say [Okay then!] for (2) secs
  • Preparing a project
when gf clicked
hide list [Inventory v]
hide list [Stats v]
hide list [To-do v]
say [This morning you woke up to a nice steaming cup of coffee.] for (2) secs

See Also