setVar

fun BlockHost.setVar(variable: Variable, expression: Expression?): NormalBlock

Adds a 'set variable to' block.

Parameters

variable

The variable to set.

expression

The value to set the variable to.