Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,657 Members 43,869 Now Online
XDA Developers Android and Mobile Development Forum

Can't use math operations within print results

Tip us?
 
auk3
Old
(Last edited by auk3; 19th March 2014 at 11:31 PM.)
#1  
Junior Member - OP
Thanks Meter 0
Posts: 3
Join Date: Apr 2012
Location: Barcelona
Default 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
Old
#2  
kwerdenker's Avatar
Recognized Themer
Thanks Meter 2,201
Posts: 1,379
Join Date: Apr 2010
Location: Probably the Zooper Forums

 
DONATE TO ME
Quote:
Originally Posted by auk3 View Post
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
Old
(Last edited by auk3; 20th March 2014 at 09:06 AM.)
#3  
Junior Member - OP
Thanks Meter 0
Posts: 3
Join Date: Apr 2012
Location: Barcelona
Quote:
Originally Posted by kwerdenker View Post
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
Old
#4  
kwerdenker's Avatar
Recognized Themer
Thanks Meter 2,201
Posts: 1,379
Join Date: Apr 2010
Location: Probably the Zooper Forums

 
DONATE TO ME
Quote:
Originally Posted by auk3 View Post
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
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 3
Join Date: Apr 2012
Location: Barcelona
Quote:
Originally Posted by kwerdenker View Post
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!!
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes