Skip to content

In Interval

88

The In Interval node categorizes a numerical value into one of five different predefined ranges (is0 to is4). When the input value falls into a range, the node triggers the corresponding action and outputs the index (0–4) of that interval.

When to use this node: * Tiered Rewards: Giving different scores or hints based on how fast a player solves a task (e.g., 0-10s = Gold, 11-30s = Silver, etc.). * State Machine Logic: Using a single analog sensor (like a potentiometer) to switch between 5 different room "modes" or environmental presets. * Multi-Zone Detection: Determining which physical sector a player is currently in based on their distance from a sensor.

Connectors in

  • value [type: float]
  • is0_from [type: float]
  • is0_to [type: float]
  • is1_from [type: float]
  • is1_to [type: float]
  • is2_from [type: float]
  • is2_to [type: float]
  • is3_from [type: float]
  • is3_to [type: float]
  • is4_from [type: float]
  • is4_to [type: float]

Connectors out

  • res [type: integer]
  • out0 [type: action]
  • out1 [type: action]
  • out2 [type: action]
  • out3 [type: action]
  • out4 [type: action]

Node properties

  • is0_from [type: float]
  • is0_to [type: float]
  • is1_from [type: float]
  • is1_to [type: float]
  • is2_from [type: float]
  • is2_to [type: float]
  • is3_from [type: float]
  • is3_to [type: float]
  • is4_from [type: float]
  • is4_to [type: float]