Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

List.ValueIndex

Finds the index for a given value.

Component Version macOS Windows Linux Server iOS SDK
List 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "List.ValueIndex"; List; Value )   More

Parameters

Parameter Description Example
List The list of texts to search. "Hello"
Value The text to find. "Hello"

Result

Returns index, nothing or error.

Description

Finds the index for a given value.
Returns zero based index (0 = first list value).
Returns empty result if not found.
Comparison is case insensitive.

Examples

Searches a word in a list:

# Returns 4
MBS( "List.ValueIndex"; "Hello¶1¶2¶3¶World"; "world" )

Blog Entries

This function checks for a license.

Created 20th November 2015, last changed 20th November 2015


List.Trim - List.XOr