Formula functions reference
This reference document covers the syntax for using formula functions, as well as available parameter types.

Formula functions syntax

Primitive values

List constructor

You can use the square bracket [] notation to construct lists inside an expression. The list can be empty, or you can initialize it with items by separating each item with a comma.
Any valid expressions can be passed as items.

Examples

1
IS_EMPTY([])
2
​
3
SUM([1,2,3,4])
4
​
5
[pageVars.firstName, pageVars.lastName]
6
​
7
[IS_EMPTY(pageVars.carsLoaded), IS_EMPTY(pageVars.driversLoaded)]
Copied!

Boolean

true

Object constructor

{}

Null

null

Number

String

Undefined

undefined

Global and page context values

App variable value

appVars namespace

Data reference value

data

Page parameter value

params namespace

Page variable value

pageVars namespace
Sensor variables
sensorVars

System variable

systemVars

Theme variable

theme

UI component context values

Currently repeated item

current

Current UI component

self

Flow function context values

Output of a previous node

outputs

Invertible formulas

When a formula function consists of only invertible components, you can bind input components to the result of the formula, and have changes propagate back to the original data source.
For example, let's consider a list of todo checkboxes whose source data is pageVars.todos. The formula used to repeat the checkboxes uses SELECT to filter the shown checkboxes to only those matching a search term inputted on the page.
Since SELECT is an invertible formula, we can bind the checkbox toggle value to a property of current, and have changes propagate back to the original pageVars.todos.
For a formula to be invertible, it must include a page, app or data variable (or a component property), and use only the following formula functions:

Notes and Details

Operator precedence works as it does in JavaScript, see more at: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence#table​
Last modified 5mo ago