Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
List.GetValue
Queries a value in the list.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
List | 7.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "List.GetValue"; List; Index ) More
Parameters
Parameter | Description | Example |
---|---|---|
List | The list to process. | "Hello" ¶ "" ¶ "World" |
Index | The index of the value to get. Must be in range from 0 to QuickList.Count-1. | $index |
Result
Returns value or error.
Description
Queries a value in the list.If you enable tracing with Trace command, this function will be much slower due to the debug output.
Examples
Get first value:
MBS( "List.GetValue"; "Hello¶World"; 0 )
Example result: Hello
See also
- JSON.GetArrayItemsAsQuickList
- List.AddValue
- List.HasValue
- List.IndexOfFirstValueMatching
- List.SetValue
- QuickList.Count
- QuickList.GetValue
- QuickList.JoinJSON
Release notes
- Version 7.1
This function checks for a license.
Created 11st March 2017, last changed 15th January 2024