Expressions

Advanced expressions

3min

Use Advanced Expressions to filter an array of records to display specific data and perform expression transformations over the data.

Examples and code snippets 

Create a filtered list from an array of records

We will display a list of people from the array of records, then filter them and display those that have entered a name. We will display their initials as a left avatar and add a label to each list item to display whether they are registered.

Result with Advanced Expressions
Result with Advanced Expressions




See the full example in GitHub.

advanced-expression.jigx


Define functions to run the expressions

As part of advanced expressions, you can define functions that will run the expressions. It can be a function for date transformations, maths calculations, or any string transformations. By using functions you will have cleaner code that is easier to read.

Divided by 10
Divided by 10


This example shows a simple function that will divide the number from the datasource.

See the full code sample in GitHub.

advanced-expression.jigx