K
Docs
API ReferencePiecesList Contains
🔍

List Contains

base.list.containsBase SetUtility

Checks whether a list contains an item (string match). Routes to Found when present, Empty when not — like a mini condition for lists.

On the canvas

This is what List Contains looks like when you place it on your flow. Each field below is something you configure in the inspector panel.

🔍
List Contains
base.list.contains
Utility
listrequired
{{allowedRoles}}
itemrequired
{{user.id}}
found
empty

Config fields

FieldTypeReqWhat it does
list
{{allowedRoles}}
textyesList 📋
item
{{user.id}}
textyesLook for

Output ports

foundItem is in the list
emptyItem is not in the list
📐

In TypeScript, this would be…

Not something you need to write — just a look at what Kitcord does for you.

TypeScript
if (allowedIds.includes(userId)) {
  // Found port
} else {
  // Not found port
}