List contains function, does it work?

List contains function, does it work?

Does the contains function work for lists?

for instance

Fetch_Records = Form1 [multi_select_lookup_field.contains(Record_ID)];

It seems this script statement is not functional.

if it doesn't work, what would be the simplest workaround?

The help section on this topic (see below) is not clear. According to it, we need two parameters,  list.contains(str1 , str2) ?


thanks for the help.

----------------------

List Function - contains

This topic describes the syntax and usage of the list - contains function in Zoho Creator .

Description

The List - contains function determines whether an element is present in the  List.

Syntax

list.contains(str1 , str2)

The contains function syntax has the following arguments.

str1 - Required. The main string from which you what to find the search string.

str2 - Required.  The string to be searched for within the main string.