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

[Q] Problem - Display Alarm set time only if enabled

OP SX86

3rd June 2014, 08:36 PM   |  #1  
OP Member
Flag QC
Thanks Meter: 7
 
64 posts
Join Date:Joined: May 2010
More
Hello!

I am trying to figure out a way to make one of my "rich text" modules only display if the alarm is enabled.

I used to only use the following line : "Next alarm is set for #SADEEEE# at #SADHH:mm#" that would display "Next alarm is set for at " if no alarm was set.

I updated the coding of the line for the following :

$#SASET#=1?Next alarm is set for #SADEEEE# at #SADHH:mm#$

But now, the result that is displayed is : "mm#"

I'm not sure I can figure out what I did wrong for this to display, since it was working without the "Write Z only if X is equal to Y"

Any help would be appreciated!
3rd June 2014, 08:53 PM   |  #2  
Senior Member
Bornheim
Thanks Meter: 68
 
131 posts
Join Date:Joined: Jan 2014
More
You have to write #SADHH\:mm# otherwise zooper will see the : as an else.

Gesendet von meinem GT-I9505 mit Tapatalk
The Following 2 Users Say Thank You to CopKiller76 For This Useful Post: [ View ]
3rd June 2014, 09:53 PM   |  #3  
OP Member
Flag QC
Thanks Meter: 7
 
64 posts
Join Date:Joined: May 2010
More
Red face
Quote:
Originally Posted by CopKiller76

You have to write #SADHH\:mm# otherwise zooper will see the : as an else.

Works! Thank you so much!
4th June 2014, 06:35 AM   |  #4  
masze's Avatar
Senior Member
Flag Sweden
Thanks Meter: 1,582
 
1,374 posts
Join Date:Joined: May 2010
More
or just put this is advanced parameters:
[ar]$#SASET#=1?1:1000000$[/ar]
4th June 2014, 02:29 PM   |  #5  
OP Member
Flag QC
Thanks Meter: 7
 
64 posts
Join Date:Joined: May 2010
More
Question
Quote:
Originally Posted by masze

or just put this is advanced parameters:
[ar]$#SASET#=1?1:1000000$[/ar]

Thanks for the alternative!

Would you mind explaining how the quoted expression works?
Post Reply Subscribe to Thread

Tags
$x=y?z$, alarm
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes