NEWS Forum Wiki XDA TV

# Can't use math operations within print results

Tip us?

auk3
(Last edited by auk3; 19th March 2014 at 11:31 PM.)
Junior Member - OP
Thanks Meter 0
Posts: 3
Join Date: Apr 2012
Location: Barcelona
Can't use math operations within print results

Hello!
When I write, for example:
Quote:
 \$#C1D#=1? (#C1SRd#+1)\$
Where C1D = 1 & C1SRd = 3

How could I make to print '4', unless '3+1'?

Thanks a lot!

kwerdenker
Recognized Themer
Thanks Meter 2,120
Posts: 1,360
Join Date: Apr 2010
Location: Probably the Zooper Forums

DONATE TO ME
Quote:
 Originally Posted by auk3 Hello! When I write, for example: Where C1D = 1 & C1SRd = 3 How could I make to print '4', unless '3+1'? Thanks a lot!
It works if you remove the space you have between your ? and the first ( . If you need a space in front your number, you'll have to put it in a separate conditional.

Hope that helps you out

Please use the forums for your Zooper related questions. I won't respond to PMs with questions that can/should be asked there. Thank you.
 The Following User Says Thank You to kwerdenker For This Useful Post: [ Click to Expand ]

auk3
(Last edited by auk3; 20th March 2014 at 09:06 AM.)
Junior Member - OP
Thanks Meter 0
Posts: 3
Join Date: Apr 2012
Location: Barcelona
Quote:
 Originally Posted by kwerdenker It works if you remove the space you have between your ? and the first ( . If you need a space in front your number, you'll have to put it in a separate conditional. Hope that helps you out
Thank you! but it doesn't work to me. I've proved so many different combinations, and still doesn't work. Keep searching...

EDIT: It finally works! In my case (not in the example) after '(#C1SRd#+1)' I put a 'd' -> '(#C1SRd#+1)d'. That's why it didn't work, because of the 'd'. Thanks a lot again!!

kwerdenker
Recognized Themer
Thanks Meter 2,120
Posts: 1,360
Join Date: Apr 2010
Location: Probably the Zooper Forums

DONATE TO ME
Quote:
 Originally Posted by auk3 Thank you! but it doesn't work to me. I've proved so many different combinations, and still doesn't work. Keep searching...
That's odd. As you can see from the attached screenshot it works as expected for me:

Send from my secret moonbase via space carrier pigeons

Please use the forums for your Zooper related questions. I won't respond to PMs with questions that can/should be asked there. Thank you.
 The Following User Says Thank You to kwerdenker For This Useful Post: [ Click to Expand ]

auk3
Junior Member - OP
Thanks Meter 0
Posts: 3
Join Date: Apr 2012
Location: Barcelona
Quote:
 Originally Posted by kwerdenker That's odd. As you can see from the attached screenshot it works as expected for me: Send from my secret moonbase via space carrier pigeons
It finally works! In my case (not in the example) after '(#C1SRd#+1)' I put a 'd' -> '(#C1SRd#+1)d'. That's why it didn't work, because of the 'd'. Thanks a lot again!!