To set an object attribute to a value:
object.attribute = value
To set a variable to a value:
variable = value
To set an object attribute to a script:
object.attribute => { script }
To set a variable to a script:
variable => { script }