AnsweredAssumed Answered

merge variable as a button label

Question asked by sokol@rogers.com on Mar 7, 2017
Latest reply on Mar 8, 2017 by sokol@rogers.com

want label to show OFF, press once for ON, then again for OFF ... repeating ...

using merge variable as label ... <<$$bl>>

thanks to help from forum & case statement, it easily switches from ON to OFF and back ... Case (  IsEmpty ($$bl) or $$bl = "OFF"  ; "ON" ; "OFF" )

but despite using onLayoutEnter to set to "OFF"... it does not do this always ...

apparently sets to a label that is BLANK, perhaps NULL ... how do I get it to show OFF as I enter the layout, and then ON with one press?

Outcomes