Arma 3 Scripting

Command in GUI Control

ctrlChecked

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns the current state of given CT_CHECKBOXES control. Since Arma 3 v1.72 it is possible to query multiple checkboxes by providing checkbox index. For more information see CT_CHECKBOXES.

Note

The "CheckBoxesSelChanged" control EH returns the control, index of changed checkbox and its current checked state. The checked state however is not a Boolean but Number 0 or 1. To convert ctrlChecked command output into number as well, use parseNumber command

Syntax

Syntax 1

ctrlChecked control

Parameters:

Returns: Boolean - true checked, false unchecked

Syntax 2

since arma3 1.72

control ctrlChecked index

Parameters:

Returns: Boolean - true checked, false unchecked

Examples

Example 1

ctrlChecked _control;

Example 2

_control ctrlChecked 3;

See also

ctrlSetChecked · cbChecked · cbSetChecked