Skip to main content

List Contains

Runs on: Shared — pure logic, runs on the Streamerly backend or inside a chatbox overlay.

The List Contains node checks whether a given value is present in a list. If the value is found, the data is routed to the Pass output. If it is not found, it goes to the Fail output. Either way, the searched value is forwarded so downstream nodes can continue working with it.

Matching uses strict equality, which means it works reliably for primitive values like strings and numbers. It will not match objects even if their contents look the same — use List Find if you need to search inside objects by a specific field.

Inputs

NameTypeDescription
listlistThe list to search through.
valueanyThe value to look for. The accepted type is inferred from the list's inner type.

Outputs

NameTypeDescription
passanyThe searched value, forwarded if it was found in the list.
failanyThe searched value, forwarded if it was not found in the list.

Example

You maintain a list of banned words for your channel. When a viewer sends a chat message, extract each word and pass it through List Contains with your banned-words list. If the word hits the Pass route, trigger a timeout or deletion action. If it hits Fail, allow the message through normally.