The compute Tag
Description
Executes an arithmetic operation.
Order of operation is simply by position (left to right). There is no operation precedence.
Type: SQL, EDI, Control
Attributes:
- name
- any valid variable name
- value
- any valid mathematical operation.
Loop Control: NO
Containing Tags
None
Used Within Tags - suggested
Use anywhere
Example
<compute name="a" value="2.05*${a}"/> multiply variable named "a" by 2.05 storing in "a".