function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MDeveloperMDeveloper 

how to apply subtraction operators to expressions in site.com?

hi,

 

 

i want to subtract payments from invoice total  in site.com. i am doing this as blew:

 

{!client_payment} - {!invoice_total} it display as "150.00 - 120.00"  but i need to display "30.00".please help me.   

Satish_SFDCSatish_SFDC
Use this
{!client_payment - invoice_total}


Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.
Satish_SFDCSatish_SFDC
Hi,
I see that you have a different post with a similar query, where you said this similar solution did not work.
I tried it and it worked fine. So if you could let us know if there is any error which comes, we will be glad to help you.

Regards,
Satish Kumar
MDeveloperMDeveloper

thank for quick reply. i have applied your method but it display same code "{!client_payment - invoice_total} "