math.Add
Returns the result of adding one or more numbers to the first number.
- Syntax
- math.Add VALUE VALUE...
- Returns
- any
- Alias
- add
Usage
The math.Add function returns the result of adding one or more numbers to the first number. If one of the numbers is a float, the result is a float.
You can also use this function to concatenate strings.
Examples
{{ math.Add 12 3 2 }} → 17
{{ math.Add 12 3.5 }} → 15.5Concatenating strings:
{{ math.Add "hu" "go" }} → hugoLast updated:
November 8, 2026
:
content: Remove categories from front matter (1cc1dd83a)
Improve this page