Skip to main content

Number Variable

This node stores and manages numeric values with persistent state.

The Number Variable node provides persistent numeric state storage with get/set operations.

The Number Variable node stores numeric values that persist across application state changes. It provides a central way to manage counters, scores, measurements, and any numeric data in your application.

Inputs

Value Management

DataDescription
ValueNumeric value to store

Actions

SignalDescription
SetSets the variable to the current input value

Outputs

Current State

DataDescription
ValueCurrent numeric value stored in the variable

Events

SignalDescription
ChangedTriggered when the variable value changes

Usage

Numeric State Management

Number Variables are essential for:

  • Counters: Track quantities, scores, or progress
  • Measurements: Store dimensions, distances, or sizes
  • Configuration: Manage numeric settings and parameters
  • Calculations: Store intermediate calculation results

Example Use Cases

  1. Game Scoring: Track player scores and high scores
  2. Progress Tracking: Monitor completion percentages
  3. User Preferences: Store numeric settings like font size, volume
  4. Data Accumulation: Sum values over time
  5. State Counters: Track application state changes