Profile Status action based on %DAYW & time range?

45 views
Skip to first unread message

glc650

unread,
Jan 20, 2014, 4:31:27 AM1/20/14
to tas...@googlegroups.com
Hi,

I currently have a task with a Profile Status action that enables/disables a profile based on the day (if %DAYW matches Monday/Wednesday/Thursday).  Anyway to specify a time range in addition to these days?

Thanks,

->g.

Rich D

unread,
Jan 20, 2014, 6:32:06 AM1/20/14
to Tasker Google Groups Post

> I currently have a task with a Profile Status action that enables/disables a profile based on the day (if %DAYW matches Monday/Wednesday/Thursday).  Anyway to specify a time range in addition to these days?

Nested If actions

1. If %DAYW matches Monday/Wednesday ect...
2.    If %TIME > 5
3.        If %TIME <11.30
4.           Profile status ; toggle
5.         End if
6.     End if
7. End if

FYI...
All of these are available in the context list and you can have up to 3 states and 1 event for a single profile.


Garrett

unread,
Jan 20, 2014, 2:29:55 PM1/20/14
to tas...@googlegroups.com
Thanks for the reply.

How do these nested IFs/END IFs work?  Do they act like a stop or will actions listed below them still get executed?


--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/uYsMYtzKjw8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/groups/opt_out.

Rich D

unread,
Jan 20, 2014, 7:11:00 PM1/20/14
to Tasker Google Groups Post

> How do these nested IFs/END IFs work?  Do they act like a stop or will actions listed below them still get executed?

> 1. If %DAYW matches Monday/Wednesday ect...
> 2.    If %TIME > 5
> 3.        If %TIME <11.30
> 4.           Profile status ; toggle
> 5.         End if
> 6.     End if
> 7. End if

   8. Rest of task

If action 1 is not true it will go to action 7
If action 2 is no true it will goto action 6 then ignore 7 and goto 8
If action 3 is not true it will go to action 5 then ignore 6 and 7 and goto 8

Garrett

unread,
Jan 20, 2014, 7:25:47 PM1/20/14
to tas...@googlegroups.com
Ok that enables the profile during the specified days/time range but how do I get it to disable the profile again when outside of the range?


--

Matt R

unread,
Jan 20, 2014, 7:46:32 PM1/20/14
to tas...@googlegroups.com
It's almost certainly better to add these restrictions to the profile you're trying to turn on/off itself (as additional contexts), instead of controlling it this way.

Matt

Rich D

unread,
Jan 20, 2014, 7:53:06 PM1/20/14
to Tasker Google Groups Post

> It's almost certainly better to add these restrictions to the profile you're trying to turn on/off itself (as additional contexts), instead of controlling it this way.

+1   as mentioned before....  :)

Ok that enables the profile during the specified days/time range but how do I get it to disable the profile again when outside of the range?

You would use a 'else if'

These are all explained in the user guide .. menu / info / user guide / flow control..

Reply all
Reply to author
Forward
0 new messages