Function: set() / =
Assigns a value to a variable.
Syntax
- set(variable, value)
- variable=value
Argument | Type | Description |
---|---|---|
variable | Variable | Name of the variable |
value | Any | Value to be assigned to the variable |
Examples
set($colour, "brown")
Sets the variable $colour the value "brown".
$colour = "brown"
Sets the variable $colour the value "brown".