Temporary Variables: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Extension|extension_img=Tempvars.png|extension_desc=Create variables for use in one block stack. Useful to not clutter the variable list with variables you only use once.}} |
{{Extension|extension_img=Tempvars.png|extension_desc=Create variables for use in one block stack. Useful to not clutter the variable list with variables you only use once.}} |
||
Temporary Variables is an extension for handling with temporary variables (or local variable) which can only be used in the block stack. |
'''Temporary Variables''' is an extension for handling with temporary variables (or local variable) which can only be used in the block stack. |
||
== Blocks == |
== Blocks == |
||
Line 21: | Line 21: | ||
[[File:For each variable in 10.svg|frameless|link=for each () in () (Temporary Variables)]] loops for the specified amount of time with the temporary variables incrementing every loop. Can also be used for defining. |
[[File:For each variable in 10.svg|frameless|link=for each () in () (Temporary Variables)]] loops for the specified amount of time with the temporary variables incrementing every loop. Can also be used for defining. |
||
{{ExtensionsNav}} |
|||
[[Category:Extensions]] |
Revision as of 23:38, 11 February 2024
Temporary Variables | |
---|---|
![]() | |
Description | Create variables for use in one block stack. Useful to not clutter the variable list with variables you only use once. |
Temporary Variables is an extension for handling with temporary variables (or local variable) which can only be used in the block stack.
Blocks
the following images are made with https://scratchblocks.github.io/ and https://en.scratch-wiki.info/wiki/Block_Plugin/Syntax
File:Set Variable to Value.svg Set the temporary variable to a value. Can also be used for defining.
File:Change variable by 1.svg Change the temporary variable by a number.
File:Get variable.svg Get the value of the temporary variable.
File:Delete variable.svg Delete the temporary variable.
File:Delete all variables.svg Deletes every temporary variable.
File:Variable exists?.svg Checks if the temporary variable exists.
File:Current variable.svg returns a list with every temporary variables. (will not include the value of those variables)
File:For each variable in 10.svg loops for the specified amount of time with the temporary variables incrementing every loop. Can also be used for defining.