set (object, string attribute name, any type value)
Sets a named attribute on the object.
Note that you can also use this syntax to do the same thing:
object.attribute = value
You only need to use the “set” command if you are constructing the attribute name using an expression.