Set Variable

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

Stores the input value into a variable.

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