change () by ()

From PenguinMod Wiki
Revision as of 01:06, 27 June 2024 by MediansSC (talk | contribs) (Created page with "{{Infobox Block |title = change () by () |category = Variables |block_name = change [ v] by () |block_type = Stack Block }} The '''change () by ()''' block is a stack block in the Variables subcategory that changes the value of the selected variable by the specified amount. The default number is 1. It originates from Scratch. ==Workaround== This block can be worked around with the following code: <scratchblocks>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Change () by ()
Jump to navigation Jump to search
change () by ()
change [ v] by ()
Caption
Block Type Stack Block
Category / Extension Variables
Status Who tf uses status

The change () by () block is a stack block in the Variables subcategory that changes the value of the selected variable by the specified amount. The default number is 1. It originates from Scratch.

Workaround

This block can be worked around with the following code:

set [var v] to ((var) + (amount ::grey))

The amount reporter is used as a placeholder for the amount that one wants the variable's value to be changed by.