Inverse Checkbox command

Hello,

I have been struggling for a while to implement a "reverse checkbox" using the built-in checkbox in Perspective. I want it to send a 0 (false) to the PLC tag when the checkbox is checked, and send a 1 (true) when the checkbox is unchecked.

I tried adding a transform, but when I select the transform, the bidirectional option automatically gets grayed out and nothing works. Does anyone has an idea to sorting out this?

Below you can see the "Biderccional" grayed out.

Thanks in advance!

You can't do bidirectional when you have a transform.

I would create a custom property that has your indirect binding to a tag, and in this binding put an expression or script transform to write to that custom property.

Just a general comment on the Map Transform: Since the input can only be false or true you can configure it as,

Input       Output
false       true
Fallback    false

You could also use a derived tag that performs the boolean "not" in both directions.