FORUMS

[Q] Simple coniditionals OR query

81 posts
Thanks Meter: 14
 
By Xave1, Member on 8th March 2014, 07:12 AM
Post Reply Subscribe to Thread 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, 07:43 AM |#2  
Senior Member
Bornheim
Thanks Meter: 79
 
More
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 ]
8th March 2014, 08:11 PM |#3  
OP Member
Flag London
Thanks Meter: 14
 
More
Quote:
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

Tags
conditional, zooper
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes