Android - Using OR logic in contexts for Tasker

Or probably you can use "Inverted" conditions to do an opposite task?, e.g.

If you want to run a task when WiFi is connected OR when the profile:A is inactive, you can instead setup contexts for "WiFi is disconnected" AND "Profile: A is active" both with "inverted" checkbox selected, and setup a task that does the opposite, if that is possible.

This basically works because of:

(A OR B) = NOT((NOT A) AND (NOT B))


Specify SSID in the WiFi Connected context to be ABC/XYZ This will activate the context if you connect to ABC or XYZ,

Reference: http://tasker.dinglisch.net/userguide/en/matching.html


just posting my solution to this problem if anybody ever comes here:

create a profile for each condition in the or statement on enter %Reasons += 1 on exit %Reasons -=1

create a profile with condition %Reasons>0 and the required enter and exit tasks

cheers!

Tags:

Tasker