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

# type

*Command · Locations, Briefing · Arma 3 v0.50 · introduced in Armed Assault v1.08*

## Description

Returns a string of a [Location](../topics/Location.md)'s class name or [Task](../topics/Task.md)'s name (same as [taskName](../commands/taskName.md)).

## Syntax

### Syntax 1

```sqf
type location
```

**Parameters:**

- `location`: [Location](../topics/Location.md)

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

### Syntax 2

```sqf
type task
```

**Parameters:**

- `task`: [Task](../topics/Task.md)

**Returns:** [String](../topics/String.md) - the type of the task

## Examples

### Example 1

```sqf
_locationType = type myLocation;
```

### Example 2

```sqf
_taskName = type myTask;
```

## See also

[setType](../commands/setType.md)

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