CALCULATES

Metadata Instruction: Perform a calculation with a non-numeric string or type cast a number into a string.
Edited By : Sobhit Sharma

Use Cases - When to use this command

Description

CALCULATES evaluates non-numeric, numeric expressions and stores the output in another variable. The output of the command is going to be a String.

Guidelines for Usage:

How to use this command

CALCULATES command is for node level operations. It can be used in any node as an instruction, except for the root node. It should not be used on the Arrows.

Let's take an example: CALCULATES $output_variable "My name is Joe Root"
Here, the value of the "$output_variable" is going to be "My name is Joe Root".
If you had a tree variable "$name" which was previously initialized to "Joe Root", the above command could also have been CALCULATES $output_variable "My name is $name"

Examples

Simulated Metadata Editor
processing icon
Analytics API Call Body
Analytics API Response Body