# Expression Editor

At times you may require complex expressions to create the property values of controls or actions. The Expression Editor is an easy-to-use tool to help you formulate expressions.

***

### How to use the Expression Editor

Click on the Expression Editor icon ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAZCAYAAAAiwE4nAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4wgUCCw6QiGrIQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAADMklEQVRIx72WPSxzbRzGr0d6ONpGKqoVIfWRKG2im6KDAYnBoCQWAxJiMjGKGklMFmHpQhMNhoqkEhELGlPFRyMWjRBtU0Rp6Tnt9Qzv8KYP3hcPrvX++N3/f373fc4vksQPRvFVGyUSCWxtbWF5eRl+vx95eXlobW3F2NhYxrysrzy9JEloaGhAe3s7CgsLsbCw8H0VKhQKGI1G1NTUIBAI4OLiApeXly/mfVmFgiCguroaoigiEolAlmU0NTV9HzCdTuP+/h6rq6tYWVlBOp3G+Pj497U0Ho9jcXERGxsbsFqt6O3tRUlJyf8DU6kUvF4vRFGExWKBVqt9tZpYLIbNzU3o9XrU1dUhmUxib28PgUAAwWAQ+/v7EAQBHo/nv4Hr6+tYWlqCLMtoaWlBV1cXNBoNsrL+6b4sy4hGo3C73fB6vSgtLcXT0xMaGxvR1tYGs9mM5+fnt1vBPzI1NcXa2lqq1WrabDa6XC6Gw2FKkkRJkhgMBul0Omk2m6lSqVhfX8+5uTm+Ny+AZ2dn7Ovro16vpyiKNBqN9Hg8DIVCvLq6otPpZFlZGQVBoE6n4+joKE9PTz8PlCSJR0dHHB4epkajYU5ODo1GI2dnZzkxMUGz2UxBEKhUKulwOHh8fExJkj4PJMlEIkGfz8eRkRFqNBqKokiTycTKykqqVCrqdDo6HA76/X7G43F+JHhr4PHxkTs7O+zv76dKpSIAAmBxcTEHBgZ4eHj4YRhJvnnxs7OzodVqUVFRAYXiX5mVSiUMBgMKCgogCMLHL+xrp0ilUry+vs4QRK1WMzc3N0OkcDjMVCr19y29u7vjzMxMhiBDQ0Ps7OzMEMnlcjEajf4d8ObmhtPT07RarRmC+Hw+bm9vZ4hks9k4Pz/PSCTybuCrL83a2hpOTk5QVFQEu92O7u5ulJeXgyREUUQymYTb7cbBwQE8Hg+0Wi3sdvvnvvihUAjJZBIGgwHNzc0YHBzMEMdisUCtViMWi2F3dxeJRAK3t7fvdubXn/80Dw8PmJychFKpREdHB0wm04tFsizj/PwcMzMzqKqqQk9PD/Lz8z8H/O5k4Yfz40BF5Cb2o8DfOYSPTttYgN8AAAAASUVORK5CYII=) that is associated with the relevant property.

The editor consists of 3 panels:

1. *Expression*\
   Formulate your expression here, by either typing it or adding available variables and code snippets from the panel on the right.
2. *Errors*
3. On the right, a panel with 2 tabs:
   * *Values*
     * Session variables
     * Script variables
     * Control elements
   * *Code Snippets*\
     Code that deal with various aspects of the following can be added to your expression:

     * Data Types
     * Dates
     * Arrays
     * Strings

     \
     \&#xNAN;*System variables* can be accessed with code snippets and by using JavaScript, e.g. current date and time.\
     Click on a code snippet in the Expression Editor to view help info in the bottom-right corner.\
     To include a variable or code snippet in your expression, either *drag-and-drop* it onto the expression panel, or *double-click* on it.

     For more help on JavaScript, go [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference).

![](/files/BnQu54vvSsfiSSaddd0y)

***


---

# 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://docs.stadium.software/features/expression-editor.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.
