Disable / Hide toggle

Forum Home Forums Understanding the Software Disable / Hide toggle

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6666
    AvatarLuca
    Participant

    How to disable/enable or hide/show a Toggle depending of the content of an input channel?
    I tried to put a dinamic image over the toggle but no success.

    Thanks

    #6668
    MikhailMikhail
    Moderator

    You can cancel the command from a toggle depending on a channel value, but you can’t hide it.

    #6669
    AvatarLuca
    Participant

    Please Mikhail can you provide an example how to cancel a command from a toggle depending on a channel value?
    Thank you

    #6672
    MikhailMikhail
    Moderator

    Set the formula of the output channel like the example below.

    Val(101) >= 100 && Stat(101) > 0 ? Cmd : double.NaN

    If the formula returns double.NaN, command is cancelled. And you will see an appropriate message in the Server log file.

    #6688
    AvatarLuca
    Participant

    Thank you Mikhail, it works fine.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.