expressionInfo

Defines a script expression that can be used to compute values. The script may refer to external data which will be available when the expression is being evaluated.

Referenced by: Dictionary Renderer

Properties

Property Details
expression Optional expression in the Arcade expression language. If no expression is provided, then the default empty expression produces a null, empty string, zero or false when evaluated (depending on usage and context).
returnType Optional return type of the Arcade expression. Defaults to string value. Number values are assumed to be double. This can be determined by the authoring client by executing the expression using a sample feature, although it can be corrected by the user. Knowing the returnType allows the authoring client to present fields in relevant contexts. For example, numeric fields in numeric contexts such as charts.
Valid values:
  • number
  • string
title Optional title of the expression. Typically used when presenting the expression to end-users e.g. in dialogs, table-of-contents or editing tools.

Expression info Example

{
  "title": "Scaling expression",
  "expression": "$feature.size * 1.5",
  "returnType": "number"
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.