---
name: "dialog"
type: command
status: ok
groups: ["GUI Control"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/dialog
revid: 318841
updated: 2022-05-13T09:21:55Z
---

# dialog

*Command · GUI Control · Arma 3 v0.50 · introduced in Operation Flashpoint v1.78*

## Description

Tests whether any user dialog is open.

## Syntax

```sqf
dialog
```

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) if a dialog is open, [false](../commands/false.md) if not

## Examples

### Example 1

```sqf
if (!dialog) then { createDialog "Dialog1"; };
```

## See also

[createDisplay](../commands/createDisplay.md) · [createDialog](../commands/createDialog.md) · [closeDialog](../commands/closeDialog.md) · Arma: GUI Configuration

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