Skip links

How do you add up several variables, not just 2?

Obtain the sum or difference by subtracting several variables

It’s possible to obtain the sum (addition) of several variables by adding them up one after the other, using BOTNATION’s mathematical tools.

For example, if you need to add up variables A, B, C and D

First initialize a TOTAL variable:

{{TOTAL}} = 0 (reset)

Then add to TOTAL the value of your variables, one by one.

{{TOTAL}} = {{TOTAL}} + {{VAR_A}}
{{TOTAL}} = {{TOTAL}} + {{VAR_B}}
{{TOTAL}} = {{TOTAL}} + {{VAR_C}}
{{TOTAL}} = {{TOTAL}} + {{VAR_D}}

TOTAL will then contain the sum of variables A, B, C and D.

Plus:
Mathematical calculation functions
Advanced calculations on variables
Everything you need to know about variables

SHARE ON