    

 ## On this page

  

 

 # getValue

 Last update: 30.07.2026 

public [getValue](get-value.md)(name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), run: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)): [Variant](./../-variant/index.md)

gets the value for a specified variable

#### Return

the variable value

#### Parameters

namethe variable to get the value forrunthe run to get the value for (0-based index)#### Throws

[ModelCenterException](./../-model-center-exception/index.md)public [getValue](get-value.md)(index: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html), run: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)): [Variant](./../-variant/index.md)

gets the value for a specified variable

#### Return

the variable value

#### Parameters

indexthe variable to get the value for (0-based index)runthe run to get the value for (0-based index)#### Throws

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