# Expressions

An overview and explanation of using expressions in Jigx is provided in the [Expressions](https://docs.jigx.com/building-apps-with-jigx/logic/expressions) and [Advanced Expressions](https://docs.jigx.com/building-apps-with-jigx/logic/expressions#advanced-expressions) section in the Guide tab.

Refer to the following topics for more information:

* &#x20;[Expressions - cheatsheet](https://docs.jigx.com/building-apps-with-jigx/logic/expressions/expressions-cheatsheet) for code snippets that can help you achieve a required result, such as creating a placeholder in a jig.
* [Expression - Common patterns](https://docs.jigx.com/building-apps-with-jigx/logic/expressions/expressions-common-patterns)
* [Expression - Quick reference](https://docs.jigx.com/building-apps-with-jigx/logic/expressions/expression-quick-reference)&#x20;

In this section, examples with code snippets are provided for working with data using JSONata; these are:

<table><thead><tr><th width="213.41015625">JSONata</th><th>Example of use</th></tr></thead><tbody><tr><td><a href="/pages/4QzFreftGDxDgEhSOaPw">Arrays</a></td><td>Create filtered lists from arrays and handling arrays with SQL and Dynamic Data</td></tr><tr><td><a href="/pages/xGDJ6NqgU7m9D8FaH3Tz">Aggregation</a></td><td>To return the minimum, maximum, or average value in an array.</td></tr><tr><td><a href="/pages/2RPG08dGoA5hi4A7yTyp">Boolean</a></td><td>Evaluate data to find a true or false result.</td></tr><tr><td><a href="/pages/jHmVyA7LmI8k8y9wUsV3">Comparison Operators</a></td><td>Compare values in data and use the value in a conditional logical expression, e.g., is an amount greater than 100.</td></tr><tr><td><a href="/pages/OS24PEjgXGCjruE9XvPs">Date &#x26; Time</a></td><td>Return a date and time in various formats, e.g., ISO 8601.</td></tr><tr><td><a href="/pages/HXvkOA0SAlkPsLy6cDd2">Path Operators</a></td><td>Navigate and access specific elements or properties within a data set, e.g., for filtering or searching.</td></tr><tr><td><a href="/pages/f36hhyhAoMu6k7lgA1N0">Functional Programming</a></td><td>Compare values or display data based on certain conditions and use logical statements, e.g., adding HTML variables in content or a multi-select as a <code>functionParameter</code>.</td></tr><tr><td><a href="/pages/efpMSNLXJC5jSFKUAaw9">Jigx Variables</a></td><td>Jigx variable set used in expressions to manipulate data specific to a Jigx App, e.g., determining the logged-in user or the organization and solution.</td></tr><tr><td><a href="/pages/avRDYXYRG0TjcP0cgIQJ">Predicate Queries</a></td><td>Used for query refinement.</td></tr><tr><td><a href="/pages/9NZIWQoFPHUt8ejJgNZK">String</a></td><td>String expressions have many uses, such as concatenating two strings to display multiple data records in one row, writing numbers as strings, or selecting only a few characters from the whole string.</td></tr><tr><td><a href="/pages/ttngxyMEIeXppGcJeKqY">Advanced expressions</a></td><td>Advanced expressions are helpful when you need to filter an array of records to display specific data and perform expression transformations over the data.</td></tr><tr><td><a href="/pages/ndLhjHtERtaQfJoNgKyQ">Regex +JSONata</a></td><td>Create validation for text fields by combining JSONata and Regex expressions.</td></tr><tr><td><a href="https://docs.jigx.com/building-apps-with-jigx/logic/expressions#javascript-expressions">JavaScript expressions</a></td><td>JavaScript functions allow you to write modular and reusable code, by encapsulating specific functionality within JavaScript functions and calling the function in an expression.</td></tr></tbody></table>


---

# 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.jigx.com/examples/readme/expressions.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.
