---
name: "taskState"
type: command
status: ok
groups: ["Briefing"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/taskState
revid: 320998
updated: 2022-05-13T10:30:31Z
---

# taskState

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

## Description

Returns the current state of a task.

## Syntax

```sqf
taskState task
```

**Parameters:**

- `task`: [Task](../topics/Task.md) - the task you want to query

**Returns:** [String](../topics/String.md) - current state of task - can be one of:
- "None"
- "Created"
- "Assigned"
- "Succeeded"
- "Failed"
- "Canceled"

## Examples

### Example 1

```sqf
tskSomeTask = player createSimpleTask ["NewTask"];
hint format["Taskstate: %1", taskState tskSomeTask];
```

## See also

Tasks · [createSimpleTask](../commands/createSimpleTask.md) · [removeSimpleTask](../commands/removeSimpleTask.md) · [setSimpleTaskDescription](../commands/setSimpleTaskDescription.md) · [setSimpleTaskDestination](../commands/setSimpleTaskDestination.md) · [setTaskResult](../commands/setTaskResult.md) · [setTaskState](../commands/setTaskState.md)

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