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