    

 ## On this page

  

 

 # getItem

 Last update: 16.07.2025 

public [getItem](get-item.md)(index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Variable](../-variable/index.md)

Gets a particular element of this collection

#### Return

The requested variable

#### Parameters

indexthe array element index#### Throws

[ModelCenterException](../-model-center-exception/index.md)public [getItem](get-item.md)(name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)): [Variable](../-variable/index.md)

Gets a particular element of this collection

#### Return

The requested variable

#### Parameters

nameThe name of the variable to get.#### Throws

[ModelCenterException](../-model-center-exception/index.md)