    

 ## On this page

  

 

 # getVariableValues

 Last update: 30.07.2026 

public [getVariableValues](get-variable-values.md)(index: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)&lt;[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)&gt;

gets values of a variable for all runs

#### Return

Object

#### Parameters

indexthe name of the variable to fetch the value of#### Throws

[ModelCenterException](./../-model-center-exception/index.md)public [getVariableValues](get-variable-values.md)(index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)&lt;[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)&gt;

gets values of a variable for all runs

#### Return

Object

#### Parameters

indexthe index of the variable to fetch the value of (0-based index)#### Throws

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