Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am learning tasker and reading up tutorial on

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
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

Your Answer


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.