Change () by (): Difference between revisions
Change () by ()
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 () | |
Block Type | Stack Block |
Category / Extension | Variables |
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.