Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Can't use math operations within print results

OP auk3

20th March 2014, 12:25 AM   |  #1  
OP Junior Member
Barcelona
Thanks Meter: 0
 
3 posts
Join Date:Joined: Apr 2012
More
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!
Last edited by auk3; 20th March 2014 at 12:31 AM.
20th March 2014, 08:22 AM   |  #2  
kwerdenker's Avatar
Recognized Themer
Flag Probably the Zooper Forums
Thanks Meter: 2,384
 
1,421 posts
Join Date:Joined: Apr 2010
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 ]
20th March 2014, 09:51 AM   |  #3  
OP Junior Member
Barcelona
Thanks Meter: 0
 
3 posts
Join Date:Joined: Apr 2012
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!!
Last edited by auk3; 20th March 2014 at 10:06 AM.
20th March 2014, 09:59 AM   |  #4  
kwerdenker's Avatar
Recognized Themer
Flag Probably the Zooper Forums
Thanks Meter: 2,384
 
1,421 posts
Join Date:Joined: Apr 2010
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 ]
20th March 2014, 10:10 AM   |  #5  
OP Junior Member
Barcelona
Thanks Meter: 0
 
3 posts
Join Date:Joined: Apr 2012
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
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes