how do you add two different values and not concatenate them?

how do you add two different values and not concatenate them?

  

I have a subtotal  value and a sales tax value that I need to add together for the total amount due, but it concatenates the values and doesn't add them together. 

SyntaxEditor Code Snippet

 FormatCurrency(GetInvoiceById.List.Current.Invoice.Subtotal,"$",2,".","" +GetInvoiceById.List.Current.Invoice.TotalTax)

how do I get the new total amount due to be those two values combined?

Solution

Does this work?

FormatCurrency(GetInvoiceById.List.Current.Invoice.Subtotal + GetInvoiceById.List.Current.Invoice.TotalTax,"$",2,".",",")

Cheers,
R

Solution

Rodrigo Coutinho wrote:

Does this work?

FormatCurrency(GetInvoiceById.List.Current.Invoice.Subtotal + GetInvoiceById.List.Current.Invoice.TotalTax,"$",2,".",",")

Cheers,
R

Yes that did what I needed! thank you!