Temporary Variables
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
Set the temporary variable to a value. Can also be used for defining.
Change the temporary variable by a number.
Get the value of the temporary variable.
Delete the temporary variable.
Deletes every temporary variable.
File:Variable exists?.png Checks if the temporary variable exists.
File:Current variable.png returns a list with every temporary variables. (will not include the value of those variables)
File:For each variable in 10.png loops for the specified amount of time with the temporary variables incrementing every loop. Can also be used for defining.