Nabrio Help
Nabrio Help

Getting Started

Nara Overview

Understanding Nara

Using Nara

Components

If-ThenFor LoopWhile LoopPause ForProcedure OrderStopSwitch Case

Miscellaneous

Nomenclature
Troubleshooting
Notice and DisclaimerEULA
NodesOperation

While Loop

Slot Usage: 0

Overview

While Loop keeps iterating until break logic resolves to exit.

Use this when loop length is controlled by runtime state rather than a fixed count.

Input

Loop Delay

integer

Delay between iterations in milliseconds.

Range: 0 to 10000

Runtime behavior:

  • Negative values are corrected to 0.
  • Delay is applied when returning from End input to next loop cycle.

Break Loop

boolean

Primary break flag evaluated each run.

Default behavior (Invert Break Condition = false):

  • false -> continue loop
  • true -> exit loop

Invert Break Condition

boolean

Inverts the evaluated break flag before routing decision.

Implementation detail:

  • Effective break state becomes NOT(Break Loop).
  • With inversion enabled:
    • Break Loop = false causes exit
    • Break Loop = true keeps loop running

This follows current C++ logic in shouldBreakLoop().

Output

Current Loop Index

integer

Zero-based loop cycle index.

Loop Flow Behavior

Start path (loopStart)

Used when loop continues.

Normal output (default handle)

Used when loop breaks.

End input (loopEnd)

Connect loop body end to this handle to evaluate next iteration.

Runtime notes

  • First entry resets index to 0.
  • Return via loopEnd increments index and re-evaluates break state.
  • Break-related flags are re-read dynamically each cycle.

For Loop

Previous Page

Pause For

Next Page

On this page

OverviewInputLoop DelayBreak LoopInvert Break ConditionOutputCurrent Loop IndexLoop Flow BehaviorStart path (loopStart)Normal output (default handle)End input (loopEnd)Runtime notes