Set Variable: Difference between revisions

(Moved information about variables to a different page)
Tag: Replaced
m (Add information, adapted from old wiki article)
 
(One intermediate revision by one other user not shown)
Line 11: Line 11:


See [[Variables]] for more information.
See [[Variables]] for more information.
== Notes ==
If {{Port|?|Value}} remains not wired, the variable will not be overwritten.
This could be used to provide default values for a custom script block:
[[File:Set_Variable_default_value.png|thumb|none|Demonstration applying a default value, 2. The variable is global for inspection.]]
== Related ==
* [[Variables]]
* [[Get Variable]]
* [[List Element]]
* [[Set Reference]]


[[Category:Blocks]]
[[Category:Blocks]]

Latest revision as of 16:18, 28 June 2024

Stores the input value into a variable.

Set Variable
Set_Variable_number.png
TypeScript block
ColliderNone
FolderVariables
Ports
Inputs Before
Value
Outputs After

See Variables for more information.

Notes

If Value remains not wired, the variable will not be overwritten. This could be used to provide default values for a custom script block:

 
Demonstration applying a default value, 2. The variable is global for inspection.

Related