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
| Name | Type | Description |
|---|---|---|
Gate | boolean or pulse | The control signal. When truthy, the value passes through. |
Value | any | The data to pass through when the gate is open. |
Outputs
| Name | Type | Description |
|---|---|---|
Value | any | The 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.