Node Red Switch Let pass if

Hello Guys

I go this Scenario :

Is it Possible that when i press the “on” Button that it will block the “true” Button and now let pass the “on” till i press the “false” Button now it should let pass the “true” button till i press the “on” button again.
Is that Possible with a Function Node? Or maybe there is an Existing Node for Something like that?

Thx in Advance

Although there are some Node Red users on this forum, given that this question has nothing at all to do with openHAB you will likely find better support on a Node Red forum.

I think this should do the job.


Exactly what i was looking for, and so easy to use Thx a Lot.