Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I am learning tasker and reading up tutorial on http://tasker.dinglisch.net/tour.html.

If you look at the picture,
you can see the two same tasks "Set Widget Icon".
Is that a typo, or something I do not understand?

enter image description here

Also, what is the benefit of toggle? Why is the property ternary, not just off and on? Can you please help with a practical example?

Thanks much.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Yes, that seems to be a typo: the conditions should be If %WIFI ~ on and If %WIFI !~ on (or If %WIFI ~ off).

The %WIFI variable can only be on or off, not toggle. But the Wifi action can be used to enable, disable or toggle Wifi, i.e. if Wifi is enabled, it will be disabled, and if Wifi is disabled, it will be enabled.

The example (minus the typo) talks about creating a "Toggle Wifi" widget: if Wifi is on and you click the icon, Wifi will be disabled and the icon will be changed to a "Wifi is off" icon. And if Wifi is off and you click the icon, Wifi will be enabled and the icon will be changed to a "Wifi is on" icon.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.