/
getlistitem (List1, Index1, Index2) , List[Index1][Index2]

getlistitem (List1, Index1, Index2) , List[Index1][Index2]

This function is used for getting the value of an item at a specific index in a list.(Where list items are based on zero-indexed.)

Here's a general explanation of how you can retrieve the value of an item in a list.

 

Example:

 

<O N="getlistitemObject1" T="Project" Category="Functions" TransAlignRule="1"> <!-- created by ParamML Examples on 8/9/2023 --> <P N="List1" V="[[1,2],[10,5],[4,8],[2,1]]" /> <P N="item_3_0_Value1" V="getlistitem(List1,3,0)" /> <P N="item_3_0_Value2" V="List1[3][0]" /> </O>
Debug Trace

As illustrated in the provided image, "List1" represents a collection composed of lists containing numerical elements.
There are two distinct methods for extracting the value of the initial number within the list situated at the fourth index of "List1."
The first approach involves utilizing the function getlistitem(List1, 3, 0), where the parameters correspond to the target list ("List1"), the desired list index (3), and the item index within that inner list (0). Alternatively, the second method employs direct indexing with List1[3][0]. Regardless of the chosen method, both pathways yield the same result, returning the value of 2, which is the first element within the specified list.

To view this example in the library, see (Engineering on Cloud )

 

Related content

map(Loop,x.parameter) or map(List,x.parameter)
map(Loop,x.parameter) or map(List,x.parameter)
More like this
Mathematical Functions
Mathematical Functions
Read with this
getlistitem(Liste, Index1, Index2), Liste[Index1][Index2]
getlistitem(Liste, Index1, Index2), Liste[Index1][Index2]
More like this
Pier Column [EX1-SIG]
Pier Column [EX1-SIG]
Read with this
suml(List) or suml(List of list , x[index])
suml(List) or suml(List of list , x[index])
More like this
Plate Girder [EX1-SIG]
Plate Girder [EX1-SIG]
Read with this