I have a variable say :
{{- $var := 7 -}}
I need to perform an arithmetic operation involving this variable and store the result back into the same i.e for example
var = var + 2
I tried doing :
{{- $var := add ( {{ $var }} 2 ) -}}
but doesn't seem to work, throws this error
unexpected "{" in parenthesized pipeline