Tasker integration problem:
Tasker integration problem:
Setting a variable to 0 works, but setting it to 1 doesn’t.
Replicate:
Go to Bindings of an item, and set the Visibility property to $aVariable.
Go to Tasker, create a Task to set $aVariable to 0 (with Lightning Launcher Variable plugin).
Play the Task. The item should now be hidden.
Go back to Tasker, change the Task to set $aVariable to 1.
Play the Task. Nothing will have changed.
Tested with the following values: 0, 1, 2, 5. Works only with 0.
]]>
< ![CDATA[
Pierre Hébert The exact issue is that using the tasker plugin the variable is set as a string, and isn’t automatically parsed to number. It seems the visibility property defaults to 0 when a string is set.
Current workaround: set the visibility property to
parseInt($aVariable)
]]>
< ![CDATA[
Ah perfect thank you.
]]>