> For the complete documentation index, see [llms.txt](https://chaoses-ib.gitbook.io/directory-opus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chaoses-ib.gitbook.io/directory-opus/manual/release_history/opus13_detailed/evaluator.md).

# Evaluator

**Evaluator**

* The "Evaluator" is a new type of simple scripting. It allows things like conditional logic and string manipulation in places where full scripting wouldn't be suitable.
* The Evaluator does not replace the old scripting and commands. Rather, it is somewhere between the two and works in conjunction with them. It is less powerful than full-blown scripting, but also has lower overheads and is guaranteed not to get stuck in loops (since it has no loops!). This allows it to be used in places where calling a normal script could cause problems.
* For example, Evaluator code can be used to make a toolbar button change its icon and label based on some criteria.
* Supports conditional logic, simple boolean, math and string operations, and functions and variables for getting various information from Opus.
* Tools > Opus CLI / Ad-Hoc Script Editor now has an Evaluator mode which lets you experiment with it.
  * Start typing, or push Ctrl+Space, for popup suggestions listing Evaluator functions.
  * In the pop-up list, hover over a function for detailed information.
* *Command:* `Set EVALUATORDISABLE=Toggle` lets you disable the evaluator if something goes wrong. It will be re-enabled on the next restart, or via running the command again.
* Use of the Evaluator is discussed more in other sections, since it can be used in various ways.

***

Next: [Lister Defaults](/directory-opus/manual/release_history/opus13_detailed/lister_defaults.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://chaoses-ib.gitbook.io/directory-opus/manual/release_history/opus13_detailed/evaluator.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
