Page 1 of 1

math variables syntax

Posted: Tue Jan 26, 2016 4:14 pm
Hi guys,

I want to display total price in USD in customs message (default currency of property is EUR)-

So I used these variables:
[CONVERT:EUR-USD] - works if used as is, shows conversion rate between two currencies
[PRICENUM:] - works if used as is, value is displayed with a decimal point and no thousands separator and no currency symbol

But what I need is a multiplication of price and the conversion rate.

So I tried: [PRICENUM:*CONVERT:EUR-USD] or [PRICENUM: * CONVERT:EUR-USD] or [PRICENUM:*[CONVERT:EUR-USD]] and many other combinations but without success.... result is nothing or the value for PRICENUM only.

What is the correct syntax if I want to calculate two or more variables? Could you help?
Thanks

Re: math variables syntax

Posted: Tue Jan 26, 2016 4:28 pm
by annettemorgenroth
Try this [PRICENUM] [*] [CONVERT:EUR-USD]

Re: math variables syntax

Posted: Wed Jan 27, 2016 1:49 pm
Many thanks, it works now!
So also mathematical operators must be inside straight brackets... now it is clear.

Re: math variables syntax

Posted: Sat May 14, 2016 5:59 am
i have a problem with math syntax i need to make this operation [DEPOSITNUM] [-] [COMMISSION] BUT Value in commission field with currency symbol THAN THE OPERATION DON'T WORK CAN YOU CREATE A FIELD without currency and thousand separetor please?

Re: math variables syntax

Posted: Sat May 14, 2016 6:38 am
by markkinchin
[COMMISSIONNUM] is now available