This is an old revision of the document!
Calc
Performs a calculation on either a frame or the table items inside the frame.
Parameters
Name | Default | Meaning |
---|---|---|
name | The name of the final attribute/column | |
value | The value to be written. Substitutable. |
Description
This function performs a calculation on a frame, or - if the frame contains a table - the individual items within the table.
Example
If the frame contains the following attributes…
Attribute | Value |
---|---|
Width | 100 |
Height | 100 |
{ "type": "calc", "name": "Area", "value": "{Width} * {Height}" }
The final results will include the Area attribute with a value of 10,000. If 'Width' and 'Height' were in the table instead, a new column called 'Area' would be added.