Roboteka
Roboteka · Robots · Check if value exists in array

Check if value exists in array

The "Check if value exists in array" robot tests whether a search value is among the elements of an array in Bitrix24 (Alaio) business processes and robots. It takes a multiple-value field or another robot output and a search string, comparing case-insensitively by default. It returns a Found Y/N flag and the index of the first match (-1 if not found).

The robot searches for a specific value inside an array of strings and reports whether it is present. The input is a multiple-value field (such as contact tags, a deal product list, or another robot output) and the value to find; the Case-sensitive flag switches between exact match and case-insensitive search (case-insensitive by default). Typical use cases: before a deal stage change, verify that a required label is already in the tag list; skip a mailing when the contact e-mail is not in the array of allowed addresses; branch the process depending on whether a given option is selected in a lead multiple-value field. It returns Found Y/N and the index of the first match (-1 when the value is absent) — compare them in the condition of the next step of the business process.

What input parameters does the robot accept?

Parameter Type Required? Default
Array of values string yes
Value to find string yes
Case-sensitive (Y/N, default N) string

What does the robot return?

Parameter Type
Found (Y/N) string
Index of first match (-1 if not found) int

Scenario: tag check before an automatic action

  1. A deal enters the In progress stage
  2. The robot checks whether the value VIP is in the deal tag multiple-value field
  3. When Found = Y the process assigns a task to the manager, on N it continues the normal path

Related robots

Related articles