add_variable
Add a global variable to a target in mBlock projects for sprites, mBot, CyberPi, or Arduino. Set name, initial value, and path to enable live block editing.
Instructions
Add a global variable to a target.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | No | ||
| value | No | ||
| target | No | ||
| confirm | No |