Add method (number)

Adds a specified number value to this number.

Syntax

number1.Add(number2)

Returns the sum of number1 and number2 as a number value.

Example

{% Var oranges = 7 %}
{% Var apples = 4 %}

The total number of oranges and apples is: {{ oranges.Add(apples) }}
If you add ten to the number of oranges you get: {{ oranges.Add(10) }}

Remarks

If the sum of number1 and number2 falls outside the range of permitted values for a number it will cause a template error.