MemberIndex Function

Description:
The index position of a member of a list.
Returns the first index position of the value in the list if it is a member of the list, and returns -1 if the value is not a member of the list.
Returns:
Whole Number
Parameters:
Parameter
Data Type
Description
1
Any
The value.
2
Any*
The list.
Examples:
When using functions inside a field, remember the field brackets:
{MemberIndex(ClientName, MemberList)}
Expression
Result
MemberIndex( "a", List("a","b","c","a","b","c") )
1
MemberIndex( "c", List("a","b","c","a","b","c") )
3
MemberIndex( "z", List("a","b","c","a","b","c") )
-1

Related content