---
name: "tvIsSelected"
type: command
status: ok
groups: ["GUI Control - Tree View"]
arma3_since: "2.02"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/tvIsSelected
revid: 378325
updated: 2026-04-02T16:30:16Z
---

# tvIsSelected

*Command · GUI Control - Tree View · Arma 3 v2.02*

## Description

Returns true if given treeview item is selected.

## Syntax

```sqf
control tvIsSelected path
```

**Parameters:**

- `control`: [Control](../topics/Control.md)
- `path`: [Tree View Path](../topics/Tree_View_Path.md)

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

## Examples

### Example 1

```sqf
_control tvIsSelected [0];
```

## See also

[tvSelection](../commands/tvSelection.md) · [tvSetSelected](../commands/tvSetSelected.md)

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