Calculator
How to set up the Calculator component in Ilevia Manager to perform mathematical operations on multiple components and display or use the result.
Introduction
This component calculates a value from other components and displays the result directly in the user interface, or makes it available to other components such as If then. You can use up to four components as calculation variables. The functions of this component are also available in Excel.
Use cases
The component can process multiple values: Info components record a value and pass it to the Calculator component, which processes it.
The component can calculate multiple inputs and send the output value. For more information click here.

Component properties
GUI
This component was created using the Graphic UI gateway.
You can refer to the chapter “Gateway / protocols” for further information.
Parameter A: enter a component on which to perform the mathematical function (Switch, Button, Info, Slider, Adjustable value).
Parameter B: enter a component on which to perform the mathematical function (Switch, Button, Info, Slider, Adjustable value).
Parameter C: enter a component on which to perform the mathematical function (Switch, Button, Info, Slider, Adjustable value).
Parameter D: enter a component on which to perform the mathematical function (Switch, Button, Info, Slider, Adjustable value).
Recording event: when the value is activated, the parameter is recorded.
Function: enter the mathematical operation to perform. Example: if you have entered two sliders in parameters A and B and want to obtain their sum, type “a+b” in the text field.
Recording event: this checkbox causes the value calculation to be performed when it is recorded by the Recorder component.
Result: enter the component in which the calculation result will be written.
Click here to consult the in-depth page on the Calculator component.
Reminder before continuing:
Download and install the Ilevia Logic plugin to enable plugins (link);
After uploading the Ilevia project to the server, wait a couple of minutes for the logic to start.