    

 ## On this page

  

 

 # setValue

 Last update: 30.07.2026 

public [setValue](set-value.md)(index: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), value: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html))

Sets the value of a global parameter. Creates the parameter if it doesn't exist.

#### Parameters

indexThe name of the global parameter to create or setpublic [setValue](set-value.md)(index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), value: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html))

Sets the value of a global parameter. Will not creates the parameter if it doesn't exist.

#### Parameters

indexThe 0 based index of the parameter to set