() (Variables)

From PenguinMod Wiki (Official)
Revision as of 21:39, 22 July 2024 by MediansSC (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Variable Block
Variable Block

This article is about the block in the Variables subcategory. For other uses, see () (disambiguation).

The () block is a reporter block in the Variables subcategory that returns the value the variable has stored, and is automatically titled the name of the variable, appearing for every variable. It originates from Scratch, and can be displayed as a stage monitor. Upon different input type and variable types, PenguinMod automatically casts the output variable to the designated type.

To rename or delete a variable, or change it to another variable monitor, this block can be right clicked.

Workaround

This block can be worked around by using the variable name wanted with the [ v] of ( v) block. However, for sprite-only variables, this always gets the value of the variable for the main sprite, and therefore doesn't work for clones.