Set Variable

Revision as of 16:18, 28 June 2024 by -u ndefined- (talk | contribs) (Add information, adapted from old wiki article)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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