> For the complete documentation index, see [llms.txt](https://streambuddies2.felineentity.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://streambuddies2.felineentity.com/loop-through-buddies.md).

# Loop Through Buddies

The Loop Through Buddies Node triggers Flows based on the amount and state of Buddies.

<figure><img src="https://1693557609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7oowhN4HFDtKmcHKVKlT%2Fuploads%2FciDDXd2bydtFXj7jEbX1%2Fimage.png?alt=media&amp;token=7faab56f-e31f-4803-b48a-c12686699fbd" alt=""><figcaption></figcaption></figure>

This Node is useful is you want to change something on all Buddies, depending on whether they are spawned or not. You can space out those changes by increasing the Interval.

#### Inputs

**Interval (Float):** The amount of time that should be paused between Flow triggers, in seconds.

**Filter:** What kind of Buddies to loop through. Can be All Buddies, Only Spawned or Only Despawned.

#### Outputs

**Buddy (BuddyData):** The current Buddy picked by the loop.

#### Flow Outputs

**Loop Body:** Triggers a Flow for every Buddy depending on the Filter.

**Loop End:** Triggers a Flow after the Loop ends.
