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

check if a variable from tasker is set

OP Valiceemo

20th August 2014, 02:09 PM   |  #1  
Valiceemo's Avatar
OP Senior Member
Thanks Meter: 13
 
299 posts
Join Date:Joined: Jan 2014
More
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#
20th August 2014, 02:49 PM   |  #2  
kwerdenker's Avatar
Recognized Themer
Flag Probably the Zooper Forums
Thanks Meter: 2,394
 
1,421 posts
Join Date:Joined: Apr 2010
Donate to Me
More
Quote:
Originally Posted by Valiceemo

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
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes