Temporary Variables: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1:
{{Extension|extension_img=TempvarsTemporaryVariables.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.
Line 6:
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.png|frameless|link=set () to () (Temporary Variables)|<sb>set [Variable] to (1)::#0869c2</sb>]] Set the temporary variable to a value. Can also be used for defining.
 
[[File:Changechange variable() by 1.png|frameless|link=change() (Temporary Variables)|<sb>change [Variable] by (1)::#0869c2</sb>]] Change the temporary variable by a number.
 
[[File:Get variable.png|frameless|link=get () (Temporary Variables)|<sb>(get [Variable]:: #0869c2)</sb>]] Get the value of the temporary variable.
 
[[File:Delete variable.png|frameless|link=delete () (Temporary Variables)|<sb>delete [Variable]:: #0869c2</sb>]] [[Delete () (Temporary Variables)|Delete the temporary variable.]]
 
[[File:Deletedelete all variables.png|frameless|link=<sb>delete all variables:: #0869c2</sb>]] Deletes every temporary variable.
 
[[File:Variablevariable () exists?.png|frameless|link=<sb><variable ()[Variable] exists?:: #0869c2></sb>]] Checks if the temporary variable exists.
 
[[File:Currentcurrent variable.pngvariables|frameless|link=<sb>(current variables::#0869c2)</sb>]] returns a list with every temporary variables. (will not include the value of those variables)
 
<scratchblocks>for each [Variable] in (10) {
[[File:For each variable in 10.png|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#0869c2</scratchblocks> variable in 10.png|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.
==See also==
*[[TurboWarp Temporary Variables]]
{{ExtensionsNav}}