---
name: "lbIsSelected"
type: command
status: ok
groups: ["GUI Control - ListBox"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/lbIsSelected
revid: 310911
updated: 2022-05-07T20:33:32Z
---

# lbIsSelected

*Command · GUI Control - ListBox · Arma 3 v0.50 · introduced in Armed Assault v1.00*

## Description

Checks whether or not given row of the given listbox is selected.

## Syntax

```sqf
control lbIsSelected index
```

**Parameters:**

- `control`: [Control](../topics/Control.md)
- `index`: [Number](../topics/Number.md)

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

## Examples

### Example 1

```sqf
_selected = _control lbIsSelected 0;
```

## See also

[lbAdd](../commands/lbAdd.md) · [lbClear](../commands/lbClear.md) · [lbColor](../commands/lbColor.md) · [lbCurSel](../commands/lbCurSel.md) · [lbData](../commands/lbData.md) · [lbDelete](../commands/lbDelete.md) · [lbPicture](../commands/lbPicture.md) · [lbSelection](../commands/lbSelection.md) · [lbSetColor](../commands/lbSetColor.md) · [lbSetCurSel](../commands/lbSetCurSel.md) · [lbSetData](../commands/lbSetData.md) · [lbSetPicture](../commands/lbSetPicture.md) · [lbSetSelected](../commands/lbSetSelected.md) · [lbSetTooltip](../commands/lbSetTooltip.md) · [lbSetValue](../commands/lbSetValue.md) · [lbSize](../commands/lbSize.md) · [lbSort](../commands/lbSort.md) · [lbSortByValue](../commands/lbSortByValue.md) · [lbText](../commands/lbText.md) · [lbValue](../commands/lbValue.md)

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