Repeater Node: Difference between revisions

From Intrigues Wiki
No edit summary
No edit summary
 
Line 29: Line 29:
* Compatible with key handlers or other condition-checking nodes.
* Compatible with key handlers or other condition-checking nodes.


----
== 📷 Example ==
----
----


== 🔗 Related Nodes ==
== 🔗 Related Nodes ==
* <code>Pause</code>
* <code>Pause</code>
* <code>Resume</code>
* <code>Resume</code>

Latest revision as of 12:19, 29 May 2025

🔁 Repeater Node

Repeater Node

The Repeater node repeats the execution of the nodes connected to its output.


🧠 What it does

When triggered, it runs all nodes connected to its output in sequence, and repeats the process.

If a repeat count is set (e.g., 3), it will run the connected flow 3 times total.

If set to -1, it will repeat indefinitely.


🔂 Behavior Detail

  • The repeater waits until the current sequence of connected nodes completes.
  • Only after all connected nodes finish execution does it trigger again.
  • This prevents infinite overlapping or premature re-execution.

📌 Use Case

Used for polling input, repeating animation triggers, AI decision refreshes, or looping systems.


⚠️ Notes

  • Can be safely paused with Pause and continued with Resume.
  • Compatible with key handlers or other condition-checking nodes.

🔗 Related Nodes

  • Pause
  • Resume
  • Key Handler

Use when you want to loop a behavior without risking call stack overflows or unexpected recursions.