evaluate

suspend fun evaluate(profileVariables: Map<String, Any>): Result<ArcadeEvaluationResult>

Evaluate the script using the supplied profile variables. Each entry of the profileVariables dictionary is placed into the interpreter as a value accessible throughout the script. The name and type of these should comply with the profile the Arcade evaluator has been constructed with. Values are not persisted across evaluations, meaning all required profile variables must be supplied with each evaluation.

Each value of a key/value pair in the dictionary is converted to a type understood by the interpreter.

Values in the dictionary can be any of the following types

To be explicit on the conversions of compound types.

Return

The task object representing the asynchronous evaluation of an Arcade script. The value of the task result is an ArcadeEvaluationResult object.

Since

200.1.0

Parameters

profileVariables

The profile variables for the script as key/value pairs.