Change () by (): Difference between revisions

From PenguinMod Wiki
Change () by ()
Jump to navigation Jump to search
Content added Content deleted
(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>...")
 
(No difference)

Latest revision as of 01:06, 27 June 2024

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.