    

 ## On this page

  

 

 # getState

 Last update: 16.07.2025 

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)