Profile image

Message timeout

11.4k iwannabeelected  2.3 years ago

Hey there,

There's a message that appears on the label when certain conditions are met. Is there a way to make it disappear after 1 second (while the conditions still met)? I feel it must be an easy solution, but it keeps escaping me.

Thanks!

  • Log in to leave a comment
  • Profile image

    @Grob0s0VBRa that's it! Thank you! Although it kept showing message when the condition wasn't met anymore, so I had to add it one more time with AND operator.

    2.3 years ago
  • Profile image
    13.4k Grob0s0VBRa

    @iwannabeelected Oi, my bad.


    {(1 - floor( smooth(Conditions,1) )) ? "Message" : "" }


    This will do.

    2.3 years ago
  • Profile image

    @Grob0s0VBRa smooth - I think it should be it, thank you. But in this form it does exactly opposite - the message APPEARS after one second when the condition is met. I need it to appear instantly, and disappear after one second.

    2.3 years ago
  • Profile image
    13.4k Grob0s0VBRa

    {ceil( smooth(Conditions,1) ) ? "Message" :"" }


    Should work.

    2.3 years ago