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
- CALCULATES $pricing_augmentation_reason "$base_rate_reason"
- CALCULATES $pricing_augmentation_reason "NA"
- CALCULATES $pricing_augmentation_reason "$pricing_augmentation_reason Lane Count Premium: [$lane_count_premium]"