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

Change Variable

Change Variable

Overview

Increases a variable by a given amount (use a negative value to decrease).

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 amount to add

Connections

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

Generated Code

Emits _<name> += <value>;.

Block ID: cu_var_change


中文 | Variable Blocks | Block Reference

Clone this wiki locally