🔍
List Contains
base.list.containsBase SetUtilityChecks 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.
🔍Utility
List Contains
base.list.containslistrequired
{{allowedRoles}}
itemrequired
{{user.id}}
found
empty
Config fields
| Field | Type | Req | What it does |
|---|---|---|---|
list{{allowedRoles}} | text | yes | List 📋 |
item{{user.id}} | text | yes | Look 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
}More Utility pieces