---
name: "forEachMemberTeam"
type: command
status: ok
groups: ["Program Flow"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/forEachMemberTeam
revid: 330646
updated: 2022-10-03T11:04:22Z
---

# forEachMemberTeam

*Command · Program Flow · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Executes the given command recursively for each team that is a member of the given team. For just agents use [forEachMemberAgent](../commands/forEachMemberAgent.md). For both teams and agents use [forEachMember](../commands/forEachMember.md).

## Syntax

```sqf
command forEachMemberTeam team
```

**Parameters:**

- `command`: [Code](../topics/Code.md)
- `team`: [Team Member](../topics/Team_Member.md)

**Returns:** [Nothing](../topics/Nothing.md)

## See also

[addTeamMember](../commands/addTeamMember.md) · [createTeam](../commands/createTeam.md) · [deleteTeam](../commands/deleteTeam.md) · [removeTeamMember](../commands/removeTeamMember.md) · [teamMember](../commands/teamMember.md) · [teamName](../commands/teamName.md) · [teams](../commands/teams.md) · [teamType](../commands/teamType.md) · [forEachMember](../commands/forEachMember.md) · [forEachMemberAgent](../commands/forEachMemberAgent.md)

<sub>Source: [BI Community Wiki — forEachMemberTeam](https://community.bistudio.com/wiki/forEachMemberTeam) (revision 330646).</sub>
