Boolean value Type and toggle action

24 views
Skip to first unread message

Ronnie Boadi

unread,
Aug 13, 2010, 12:27:01 PM8/13/10
to Tasker - Feature Requests
I want to be able to set a boolen flag and have a widget toggle the
value between 0 and 1.

Russ Suter Russ Suter

unread,
Aug 13, 2010, 12:29:46 PM8/13/10
to task...@googlegroups.com

I manage to do this now with numeric values and an if statement. Pretty straight forward.

jorgesm

unread,
Aug 13, 2010, 2:25:29 PM8/13/10
to Tasker - Feature Requests
it's easy:

if &FLAG = 1
variable clear %FLAG
...
stop
end if
if &FLAG != 1
variable set %FLAG = 1
...
end if

Because there is no 'else' command, you need to 'stop' the task inside
the first 'if', or else the second 'if' would be executed also.

An 'else' command would be a good feature to add to Tasker...
Reply all
Reply to author
Forward
0 new messages