Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,174 Members 36,245 Now Online
XDA Developers Android and Mobile Development Forum

check if a variable from tasker is set

Tip us?
 
Valiceemo
Old
#1  
Senior Member - OP
Thanks Meter 11
Posts: 219
Join Date: Jan 2014
Default check if a variable from tasker is set

Is it possible to have a conditional in Zooper widget, whereby it checks if a variable is set or not set, i.e. empty or not empty.
I have 2 variables created in Tasker for cell data usage. Only 1 variable is set at a time, depending on data usage?
Id like to display the results in a zooper widget...what im looking for is something like:

If #TDataGB# is set then display #TDataGB# or else display #TDataMB#
 
kwerdenker
Old
#2  
kwerdenker's Avatar
Recognized Themer
Thanks Meter 2,201
Posts: 1,379
Join Date: Apr 2010
Location: Probably the Zooper Forums

 
DONATE TO ME
Quote:
Originally Posted by Valiceemo View Post
Is it possible to have a conditional in Zooper widget, whereby it checks if a variable is set or not set, i.e. empty or not empty.
I have 2 variables created in Tasker for cell data usage. Only 1 variable is set at a time, depending on data usage?
Id like to display the results in a zooper widget...what im looking for is something like:

If #TDataGB# is set then display #TDataGB# or else display #TDataMB#
You could try the following conditional $#TDataGB#=?#TDataMB#:#TDataGB#$
Not a 100 percent sure if it will work though. Just give it a try and see if it does

Please use the forums for your Zooper related questions. I won't respond to PMs with questions that can/should be asked there. Thank you.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes