Emberblocks

Search documentation

Search docs pages by title or description

Your apps
Browse documentation

Formula functions

Every function in the Emberblocks formula language, with its signature, what it returns and an example you can paste into a formula.

Formulas run in filters, visibility rules, workflow conditions and computed values; Expressions explains how they work. This page is the reference. It is built from the formula editor's own catalog, the one its assistant browses, so it lists exactly what the editor accepts today: 36 functions, grouped the way the editor groups them. Examples use placeholder names such as [Address] or [Related Table]; swap in your own columns and tables.

Bringing formulas over from AppSheet or Airtable? Search this page for the function name. Many will look familiar (IF, AND, CONCATENATE, LOOKUP, SELECT, ISBLANK), but check the signature, since the arguments can differ from the tool you know. A function that is not listed here is not available yet.

At a glance

Yes/No

Syntax
a = ba <> b

Tests whether two values are equal; use <> for “not equal”. Comparisons don't chain.

ResultYes/NoExample "Open" = "Closed"

a < ba <= ba > ba >= b

Orders two numbers or two dates. Comparisons don't chain.

ResultYes/NoExample 0 > 100

TRUEFALSE

The literal true and false values.

ResultYes/No

AND

ResultYes/No
AND(condition1, condition2, …)

True only when every condition inside it is true.

ExampleAND(TRUE, TRUE)

OR

ResultYes/No
OR(condition1, condition2, …)

True when at least one condition inside it is true.

ExampleOR(TRUE, FALSE)

NOT

ResultYes/No
NOT(condition)

Flips a true/false value to the other one.

ExampleNOT(TRUE)

ISBLANK

ResultYes/No
ISBLANK(value)

True when a column is empty (has no value).

ExampleISBLANK("text")

CONTAINS

ResultYes/No
CONTAINS(text, search)

True when the first text contains the second text somewhere inside it.

ExampleCONTAINS("text", "urgent")

IN

ResultYes/No
IN(value, option1, option2, …)

True when the value equals one of the listed options (references and true/false aren't allowed).

ExampleIN("Open", "Open", "Pending")

ISVERIFIED

ResultYes/No
ISVERIFIED(address)

True when the address was picked from the suggestions or looked up, false when somebody just typed it.

ExampleISVERIFIED([Address])

Math

Syntax
a + ba - ba * ba / b

Adds, subtracts, multiplies, or divides numbers.

ResultNumberExample 10 + 2

03.14-5

A plain number; write a leading minus for negatives.

ResultNumberExample 42

SUM

ResultNumber
SUM([Related Table], value, condition?)

Adds up a number column across related rows in a child table, optionally filtered. Also takes a list: SUM(SELECT(Table[Number Column], condition)) adds up matching values from any table.

ExampleSUM([Related Table], [Number Column])

COUNT

ResultNumber
COUNT([Related Table], condition?)

Counts related rows in a child table, optionally filtered by a condition.

ExampleCOUNT([Related Table])

DISTANCE

ResultNumber
DISTANCE(place1, place2)

Straight-line distance between two places, in metres. Costs nothing and needs no Google key; blank when either place has no coordinates.

ExampleDISTANCE([Address], [Other address])

TRAVELDISTANCE

ResultNumberOnly in a computed field
TRAVELDISTANCE(from, to, mode?)

Metres along the route between two places, looked up with Google when the record is saved. Divide by 1000 for kilometres.

ExampleTRAVELDISTANCE([From], [To], "driving")

Calls Google, so it needs the app's own Google Maps Platform key (Settings, Maps & addresses) and runs only in a field's Computed value, which is worked out and stored when the record is saved. Filters, visibility rules, defaults and Live formulas refuse it. With no key, a failed lookup or the app's maps limit reached, the field is left blank.

Text

Syntax
a & b

Joins two values into text; shorthand for CONCATENATE.

ResultTextExample "Hello" & " " & "World"

"Hello"

A text value in double quotes; write "" inside it for a literal quote character.

ResultText

CONCATENATE

ResultText
CONCATENATE(part1, part2, …)

Joins values into one text string; reference columns must be traversed to a column first.

ExampleCONCATENATE("Hello", " ", "World")

TEXT

ResultText
TEXT(value, "format")

Formats a number or date as text using a format written directly, e.g. TEXT([Due], "DD/MM/YYYY").

ExampleTEXT(1234.5, "0.00")

ENCODEURL

ResultText
ENCODEURL(value)

Percent-encodes a value so it can sit safely inside a URL; a blank value encodes as empty text.

Example"https://maps.example.com/?q=" & ENCODEURL("Athens")

TOJSON

ResultText
TOJSON(value)

Writes a value as a JSON literal: numbers and true/false stay bare, text gets quotes, blank becomes null. For webhook bodies.

ExampleTOJSON(42)

JSONESCAPE

ResultText
JSONESCAPE(value)

Escapes a value for use INSIDE a quoted JSON string (quotes and newlines become \" and \n). For webhook bodies.

ExampleJSONESCAPE("Hello")

JSONGET

ResultText
JSONGET([JSON Column], "key.subkey")

Reads one value out of a JSON column by path, e.g. JSONGET([Answers], "answers.q1"). Numbers and true/false come back as text, nested objects as JSON text, a missing key as blank. The only way to use a JSON column in a formula.

ExampleJSONGET([Answers], "answers.q1")

DIRECTIONSURL

ResultText
DIRECTIONSURL(destination, mode?)

A Google Maps directions link to a place, for a button or a link column. Costs nothing and needs no key. Mode is "driving", "walking", "cycling" or "transit".

ExampleDIRECTIONSURL([Address])

Time

Syntax
"YYYY-MM-DD"

A date literal in quotes; compared with a date column it coerces automatically, and stands in for a date-time at midnight.

ResultDateExample "2026-01-31"

"YYYY-MM-DD HH:MM"

A date-time literal in quotes; see TEXT for display formats.

ResultDate & timeExample "2026-01-31 09:00"

TODAY

ResultDate
TODAY()

Today's date, with no time part.

ExampleTODAY()

NOW

ResultDate & time
NOW()

The current date and time.

ExampleNOW()

TRAVELTIME

ResultNumberOnly in a computed field
TRAVELTIME(from, to, mode?)

Seconds to travel between two places, looked up with Google when the record is saved. Mode is "driving", "walking" or "cycling".

ExampleTRAVELTIME([From], [To], "driving")

Calls Google, so it needs the app's own Google Maps Platform key (Settings, Maps & addresses) and runs only in a field's Computed value, which is worked out and stored when the record is saved. Filters, visibility rules, defaults and Live formulas refuse it. With no key, a failed lookup or the app's maps limit reached, the field is left blank.

Columns

Syntax
[Column]

The value of a column on the current row.

ResultSame as the column

[Reference].[Column]

Follows a reference column to a column on the related row (up to 2 hops).

ResultSame as the target column

RECORD[Column]

Only in record filters: a column on the record page's current record, instead of the row being filtered.

ResultSame as the column

Lists

Syntax
THISROW[Column]

Only inside a SELECT() condition: a column of the row the formula runs on (the outer row), instead of the selected table's row, e.g. SELECT(Appointments[Price], [Client] = THISROW[Client]).

ResultSame as the column

LOOKUP

ResultSame as the result column
LOOKUP(value, [Table].[Match Column], [Table].[Result Column])

Finds the first row in another table whose match column equals the value, and returns its result column.

ExampleLOOKUP("value", [Table].[Match Column], [Table].[Result Column])

SELECT

ResultText
SELECT(Table[Column], condition)

A column's values across another table's rows, joined with commas (up to 100). The condition filters the rows and reads the selected table's columns; THISROW[Column] and THISROWID() reach back to the row the formula runs on. Add TRUE as a third argument to keep each value once. In notification audiences, use SELECT(USERS[Email], …) to target app users.

ExampleSELECT(Table[Column], [Status] = "Open")

THISROWID

ResultReferenceOnly inside a SELECT() condition
THISROWID()

The id of the row the formula runs on. Match it against a reference column to pick this record's related rows, e.g. SUM(SELECT(Invoice Items[Amount], [Invoice] = THISROWID())).

ExampleTHISROWID()

REFROWS

ResultRelated recordsOnly in a formula field's Live formula
REFROWS([Related Table], condition?)

The related rows of a child table (the ones whose reference column points at this record), optionally filtered.

ExampleREFROWS([Related Table])
COUNTSUMTo read across many related rows, use COUNT or SUM (under Math): they roll a child table up to a single number.

Other

IF

ResultSame as inputs
IF(condition, then, else)

Returns one value when the condition is true and another when it's false; both results must share a type.

ExampleIF(TRUE, "Yes", "No")

USEREMAIL

ResultText
USEREMAIL()

The signed-in user's email address.

ExampleUSEREMAIL()

USERROLE

ResultText
USERROLE()

The signed-in user's app role name.

ExampleUSERROLE()

RECORDID

ResultReferenceOnly in record filters
RECORDID()

The id of the record page's current record. Match it against a reference column, e.g. [Customer] = RECORDID().

Example[Reference] = RECORDID()

APPNAME

ResultText
APPNAME()

The app's display name.

ExampleAPPNAME()

STEP

ResultNumber or TextOnly in workflow steps
STEP("Step name", "count" | "rows" | "text" | "value")

An earlier step's output. A Find records step exposes "count" and "rows", an Ask Ember step exposes "text", a Run code step exposes "value".

ExampleSTEP("Find overdue", "count")

STEPFIRST

ResultSame as the columnOnly in workflow steps
STEPFIRST("Step name", "Column")

A column of the FIRST row an earlier Find records step matched; blank when nothing matched.

ExampleSTEPFIRST("Find overdue", "Amount")

LATITUDE

ResultNumber
LATITUDE(address)

The latitude stored on an address, or blank if nobody ever looked it up.

ExampleLATITUDE([Address])

LONGITUDE

ResultNumber
LONGITUDE(address)

The longitude stored on an address, or blank if nobody ever looked it up.

ExampleLONGITUDE([Address])

ADDRESSPART

ResultText
ADDRESSPART(address, part)

One part of an address: "street", "streetNumber", "subpremise", "locality" (the city), "region", "postalCode", "country" or "countryCode".

ExampleADDRESSPART([Address], "locality")

LATLNG

ResultAddress
LATLNG(latitude, longitude)

Treats a pair of number columns as a place, so a table that already stores latitude and longitude can use DISTANCE() and travel time.

ExampleLATLNG([Latitude], [Longitude])
// note/* note */Notes to yourself: everything after // (to the end of the line) or between /* and */ is skipped when the formula runs.