calculateContainerBlock & calculateMathAddOnBlock
Last updated
Last updated
This Block accepts source VC as input and generates output as new VC document.
Variable | Definition | Example of Input |
---|---|---|
New variable "E0" would be created with a value set to one from the "field0" in the VC document.
"title" is not a mandatory parameter. The value is set automatically as per the user convenience.
The output variable "field0" will contain the value from the variable "E1".
"title" is not a mandatory parameter. The value is set automatically as per the user convenience.
This Block performs mathematical calculations sequentially.
When above code is executed, a new variable, "E1" will be created which would contain the value of the calculation "E0*10".
Note: All the expressions available in Math.js are supported by calculateMathAddOnBlock.
In the input VC is { "field0" : 5 }
Then
input VC variable "E0" will contain 5 (eg. "E0" = 5)
When executed a new variable "E1" will be created with the value "E1" = E0*10 = 5 * 10 = 50
In the output VC there will be "E1" variable
The result will be VC = { "field0" : 50 }
Variable | Definition | Example of Input |
---|---|---|
Operator | Name | Syntax | Associativity | Example | Result |
---|---|---|---|---|---|