Go Back   Android Forums > Android Discussion > Android Applications > Tasker

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
LinkBack Thread Tools
Old December 2nd, 2012, 06:02 PM   #1 (permalink)
New Member
Thread Author (OP)
Join Date: Dec 2012
Posts: 1
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default IF conditions with And/Or logic?

Is there a way to do AND/OR conditional logic? E.g. IF %variable1 ~ text1 AND %variable2 ~ text2?

I'm looking for AND, OR, NOT


droidrcl is offline  
Reply With Quote
sponsored links
Old December 3rd, 2012, 03:24 PM   #2 (permalink)
Senior Member
CodeMonkey's Avatar
Join Date: Dec 2008
Location: On the sofa
Posts: 562
Device(s): Nexus 4 (stock), Nexus Galaxy (retired), Atrix (ret.), N1 (ret.), Magic (ret.), G1 (ret.)
Carrier: Not Provided

Thanks: 13
Thanked 102 Times in 86 Posts

I use OR as with the following example:

If I have a mobile data connection I set my variable %MDATA = 1.
If I have a WiFi connection I set my variable %WDATA = 1.
In tasks where I need a data connection I can then check with:

In my experience mathematical checks are the best way of implementing these types of tests.
Monkey see, monkey do.

CodeMonkey is online now  
Reply With Quote

Go Back   Android Forums > Android Discussion > Android Applications > Tasker
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

All times are GMT -5. The time now is 03:41 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.