Skip to main content

Gate

Runs on: Shared (backend or chatbox overlay).

Passes a value through only while the gate is open. The gate opens on a truthy signal: true, a non-zero number, a non-empty string or a pulse. Otherwise the value is blocked and nothing is sent downstream.

Inputs​

NameTypeDescription
Gateboolean or pulseThe control signal. When truthy, the value passes through.
ValueanyThe data to pass through when the gate is open.

Outputs​

NameTypeDescription
ValueanyThe input value, unchanged, when the gate is open.

Example​

To play TTS alerts only while you're live, connect a Stream Status node to Gate and your TTS text to Value. Offline, the text is blocked and nothing plays.