FORUMS
Remove All Ads from XDA

Can't use math operations within print results

3 posts
Thanks Meter: 0
 
By auk3, Junior Member on 20th March 2014, 12:25 AM
Post Reply Email Thread
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!
 
 
20th March 2014, 08:22 AM |#2  
kwerdenker's Avatar
Recognized Themer
Flag Probably the Zooper Forums
Thanks Meter: 2,542
 
Donate to Me
More
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
The Following User Says Thank You to kwerdenker For This Useful Post: [ View ] Gift kwerdenker Ad-Free
20th March 2014, 09:51 AM |#3  
OP Junior Member
Barcelona
Thanks Meter: 0
 
More
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!!
20th March 2014, 09:59 AM |#4  
kwerdenker's Avatar
Recognized Themer
Flag Probably the Zooper Forums
Thanks Meter: 2,542
 
Donate to Me
More
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
The Following User Says Thank You to kwerdenker For This Useful Post: [ View ] Gift kwerdenker Ad-Free
20th March 2014, 10:10 AM |#5  
OP Junior Member
Barcelona
Thanks Meter: 0
 
More
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!!
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes