# Dynamic State

You can use the evaluator with the various [command modifiers](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/command_reference/command_modifier_reference) that affect the state of toolbar buttons:

* **@hideif** / **@showif** - dynamically hide or show the button
* **@disableif** / **@enableif** - dynamically disable or enable the button
* **@toggle** - control whether the button appears checked/selected or unchecked/unselected

Note that these modifiers can also be used [without the evaluator](https://chaoses-ib.gitbook.io/directory-opus/reference/command_reference/command_modifier_reference#@icon), so to use the evaluator you must begin the expression with a `=` character.

![](https://github.com/Chaoses-Ib/DirectoryOpus/blob/main/Manual/evaluator/applicable_contexts/functions/page%3Estandard_variables\&nodate\&nouser\&nofooter)

The return value from the evaluation expression will be used to determine the state. The meaning depends on the modifier in question:

* **@hideif** - return **true** to hide the button, **false** to show it
* **@showif** - return **true** to show the button, **false** to hide it
* **@disableif** - return **true** to disable the button, **false** to enable it
* **@enableif** - return **true** to enable the button, **false** to disable it
* **@toggle** - return **true** if the button should be checked/selected, **false** otherwise


---

# 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/evaluator/applicable_contexts/functions/dynamic_state.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.
