> 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/evaluator/applicable_contexts/functions/labels.md).

# Labels

In a toolbar or menu button, you can use the **@label** modifier to set the button label dynamically using the evaluator.

As a very basic example, `@label:=return "Hello!";` would set the label to "Hello!".

Spacer (with labels turned on) and Label fields can also use the evaluator; you don't need the `@label:` part for them, just put your evaluator clause in the label field preceded by a `=` symbol.

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

The original label is available as the `original_label` variable.

The return value from the evaluation expression will be used as the label for the button.
