changeParameter

fun changeParameter(parameterName: String, value: Double): Boolean

A convenience method to change the named parameter to the supplied value. This will work with either double or integer parameters. Integer parameters are coerced to the rounded up value of the supplied double, provided that the integer can hold the supplied value. If the named parameter is not associated with the parameters, then no change occurs. In other words, the action fails, silently by returning false.

Return

true if changed, false if no change occurred

Parameters

parameterName

the name of the parameter to change

value

the value to change to