Execute task if tasker profile has been active for some time How can I execute a tasker task only after a certain condition has been true for a certain time?

Normally a profile executes its task as soon as all conditions are met. I want to delay this activation, until the conditions have stayed true for some time.

E.g. 


do something after the screen has been continuously off or on for 10 minutes
do something after wifi xy has not been near for 10 minutes
do something after cell towers x,y,z have not been near for 10 minutes.
A mix of Wait, Variable Search and If-Else should suffice here.

Tasker maintains a variable named Profiles Active, denoted by %PACTIVE. 


  Profiles Active (dynamic)
  %PACTIVE
  A comma-separated list of the currently active, named profiles in activation order. Duplicate names will appear on the list only once. The list always starts and ends with a comma to make matching easier, if it's not empty. 


(Emphasis mine)

You can use Wait action to wait for N amount of time and then check whether your profile is active or not. If not active, exit out of the task, else, continue.

You may begin your task with these actions:


Task &rarr; Wait &rarr; configure it
Variables &rarr; Variable Set:


Name: %ActiveProfiles
To: %PACTIVE

Variables &rarr; Variable Search Replace:


Variable: %ActiveProfiles
Search: ,PROFILE_NAME,
tick Ignore Case
Store Matches In: %CurrentProfile


Replace PROFILE_NAME with the name of your profile. A profile's name must be setup manually.
Task &rarr; If: %CurrentProfile1 Isn't Set
Task &rarr; Stop

Alternatively, put any action that notifies you that the profile deactivated in the mean time.
Task &rarr; Else
Setup the actions you want be executed if the profile remains active after N amount of time.