---
name: "isAgent"
type: command
status: ok
groups: ["Teams"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/isAgent
revid: 319121
updated: 2022-05-13T09:23:13Z
---

# isAgent

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

## Description

Check if team member is an agent.

## Syntax

```sqf
isAgent teamMember
```

**Parameters:**

- `teamMember`: [Team Member](../topics/Team_Member.md)

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

## Examples

### Example 1

```sqf
isAgent teamMember _unit;
```

## See also

[agent](../commands/agent.md) · [agents](../commands/agents.md) · [createAgent](../commands/createAgent.md) · [forEachMemberAgent](../commands/forEachMemberAgent.md)

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