Remove All Ads from XDA

[Q] Simple coniditionals OR query

99 posts
Thanks Meter: 19
By Xave1, Member on 8th March 2014, 08:12 AM
Post Reply Email Thread
Hi all,

I'd like to show wifi status not as numbers but as off / on / enabled

State in numbers being as per:

#NWSTATE# WiFi State (0 disabled, 1 enabled, 2 connected)

So far I've manage to code as follows for off or on:

Wifi $#NWSTATE#=0?disabled:enabled$

how do I modify the code to show the 3rd state of connected please?
8th March 2014, 08:43 AM |#2  
Senior Member
Thanks Meter: 80
Try this
$#NWSTATE#=0?off$$#NWSTATE#=1?on$$#NWSTATE#=2?conn ected$

Sent from GT-I9505 via Tapatalk
The Following User Says Thank You to CopKiller76 For This Useful Post: [ View ] Gift CopKiller76 Ad-Free
8th March 2014, 09:11 PM |#3  
OP Member
Flag London
Thanks Meter: 19
Originally Posted by CopKiller76

Try this
$#NWSTATE#=0?off$$#NWSTATE#=1?on$$#NWSTATE#=2?conn ected$

Sent from GT-I9505 via Tapatalk

Perfect. Thank you.

Sent from my Nexus 5 using Tapatalk
Post Reply Subscribe to Thread

conditional, zooper

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

Advanced Search
Display Modes