How to add several variables and not only 2?

Obtain the sum or difference by subtracting several variables

It is possible to obtain the sum (addition) of several variables by adding them one after the other, via the mathematical tools of BOTNATION.

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

Initialize a TOTAL variable beforehand:

{{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:
The mathematical calculation functions
Advanced calculations on variables
All about variables

Create your Chatbot Easily and for Free!