Create a toggle switch?
Posted: 17 Jan 2016 03:05
I haven't found a way to create a toggling switch.
For instance FGS-212 has a S2 switch that should be able to be used to drive some logic in the controller.
The "if -> then" and the "logical rule" apps can only turn on or off another switch based on a fixed condition. E.g. if a switch is on set this other switch to on.
I would like to write something like this:
where toggle(switch) is:
Is there such an app already built?
For instance FGS-212 has a S2 switch that should be able to be used to drive some logic in the controller.
The "if -> then" and the "logical rule" apps can only turn on or off another switch based on a fixed condition. E.g. if a switch is on set this other switch to on.
I would like to write something like this:
Code: Select all
on(switch.any) // on or off
toggle(another_switch);
Code: Select all
if (switch.on)
switch.off()
else
switch.on()