2 State Toggle Button

What is the prefered method to tie 2 or more boolean tags that must all be true in order for the 2 State Toggle Button to be true

In that case, don’t bind the “Control Value” property and bind the “Indicator Value” property to an expression like this:{Path/To/Boolean1} && {Path/To/Boolean2} && {Path/To/Boolean3}So the expression will return 1 when all are true and 0 otherwise.

If you want to write to tags when the button is pressed you either:

  1. Bind the “Control Value” property to a single tag if you only need to write to one tag or
  2. For multiple tags you can put an event of the actionPerformed:value = not event.source.controlValue system.tag.writeToTag("Path/To/Boolean1", value) system.tag.writeToTag("Path/To/Boolean2", value) system.tag.writeToTag("Path/To/Boolean3", value)