    

 ## On this page

  

 

 # isValid

 Last update: 16.07.2025 

public [isValid](is-valid.md)(index: [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)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)

checks for valididty of an object given an index and run

#### Return

true or false

#### Parameters

indexthe name of the variable to checkrunthe run of the run to check (0-based index)#### Throws

[ModelCenterException](../-model-center-exception/index.md)public [isValid](is-valid.md)(index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), run: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)

checks for valididty of an object given an index and run

#### Return

true or false

#### Parameters

indexthe index of the variable to check (0-based index)runthe run of the run to check (0-based index)#### Throws

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