Skip to content
mouse114514 edited this page Sep 12, 2026 · 1 revision

Set Variable

Set Variable

Overview

Sets a variable to a numeric value.

Slots

Slot Type Description
NAME String slot (text field) variable name (default myVar); must match the name used by get variable
VALUE Number slot the value to assign

Connections

Connection Type Description
Top Statement connects after a previous statement
Bottom Statement continues to the next statement

Generated Code

Emits _<name> = <value>; (variables are declared with a _ prefix).

Block ID: cu_var_set


中文 | Variable Blocks | Block Reference

Clone this wiki locally