PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

Contains

Checks whether a list contains a given value or object and returns true or false.

The Contains action (List) searches a list for a value and returns true if it is found, false if not. Use it before a Decisional to branch on whether an item is already in a list.

Add the action

In the Process Designer toolbox, open List and pick Contains (or type Contains in the search box โ€” make sure you pick the one in the List folder, not the String one).

The List Contains action properties: Input list, Input object to be found and Result

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
Input listInputList of any typeYesThe list to search.
Input object to be foundInputAny value (text, number, Boolean, Object (JSON), data model)YesThe value to look for.
ResultOutputBoolean (true/false)Yestrue if the list contains the value, otherwise false.

Example

Input listInput object to be foundResult
[1,2,3]2true
[1,2,3]9false
["Apple","pear"]peartrue
["Apple","pear"]applefalse (text comparison is case-sensitive)
[1.5,2]1.5true
[true,false]truetrue
[{"id":1,"name":"Ann"},{"id":2,"name":"Bob"}]{"name":"Bob","id":2}true (property order does not matter)
[{"id":1,"name":"Ann"}]{"id":1}false (the whole object must match)
[]9false
[1](empty)The step fails: Input was null. Please, fill it.

Good to know

  • Text is compared exactly, including upper/lower case.
  • A number matches the same number written as text (2 and "2").
  • Objects and data models match only when all properties and values are equal; the order of the properties does not matter. A partial object does not match.
  • An empty Input object to be found makes the step fail. An empty list simply returns false.

On this page