    

 ## On this page

  

 

 # getState

 Last update: 30.07.2026 

public [getState](get-state.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)

gets the state of the variable, either PHXVariableDescription.INPUT or PHXVariableDescription.OUTPUT.

#### Return

the variable's state

#### Throws

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