# DialogOption

The **DialogOption** object is used with the options property of the [**Dialog**](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/dialog) object. A collection of five of these is provided, and any you initialize will be displayed to the user as physical checkbox controls.

| Property Name | Return Type | Description                                                                                                                                                      |
| ------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| label         | *string*    | Set this to the desired label of the checkbox.                                                                                                                   |
| state         | *bool*      | Set this to the desired initial state of the checkbox. When the **Dialog.Show** method returns, you can read this property to find out the state the user chose. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/dialogoption.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
