    

 ## On this page

  

 

 # setValue

 Last update: 30.07.2026 

public [setValue](set-value.md)(varName: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), value: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html))

sets the value for the specified variable

#### Parameters

varNamethe full variable namevaluethe value to set the variable to#### Throws

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