so the 0 at the end ensures that the statement evaluated doesn't end with a plus sign (which will fail).
If using a [[Web Page View]] field you should use the syntax above.
A If you are using a [[Web Page ViewCalculated Value]] field can be used to display these calculations.use the following: ( [#(?object=transaction;)$add this$+#]0)