---
name: "BIS_fnc_taskState"
type: function
status: ok
groups: ["Tasks"]
arma3_since: "0.76"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_taskState
revid: 352114
updated: 2024-02-01T23:25:00Z
---

# BIS_fnc_taskState

*Function · Tasks · Arma 3 v0.76*

Locality: arguments **global**

## Description

Returns task's state. 

> [!NOTE]
> See Arma 3: Task Framework for more information.

## Syntax

```sqf
taskID call BIS_fnc_taskState
```

**Parameters:**

- `taskID`: [String](../topics/String.md) - ID of the task

**Returns:** [String](../topics/String.md) - state of the task. Can be:
- "AUTOASSIGNED"
- "ASSIGNED"
- "CREATED"
- "SUCCEEDED"
- "FAILED"
- "CANCELED"

## Examples

### Example 1

```sqf
"task_1" call BIS_fnc_taskState;
```

### Example 2

```sqf
["task_1"] call BIS_fnc_taskState;
```

## See also

Arma 3: Task Framework

<sub>Source: [BI Community Wiki — BIS fnc taskState](https://community.bistudio.com/wiki/BIS_fnc_taskState) (revision 352114).</sub>
