ArcadeEvaluationResult

The result from the successful evaluation of an Arcade expression.

Since

200.1.0

Properties

Link copied to clipboard
val result: Any?

The result of a successful evaluation. May take one of the following types:

Functions

Link copied to clipboard

Cast the result of an evaluation to another type using the Arcade casting rules. Use to ensure that the final return value from a script is cast to an expected type in an Arcade-consistent manner. For more information on the casting behavior for each type, see ArcadeExpressionReturnType. Only types to which a value can be cast are available in ArcadeExpressionReturnType. Other types, such as GeoElement, should be accessed via the result property. An exception is not thrown when casting fails. Instead, an error is returned whose value depends on the type of cast attempted.