Skip to main content
Version: 2.11

Set Object Property

Set a specific property of an object.

Description

Sets the value of a specific property for the provided object. Set Object Property with:

  • object: p
  • property: Person.name
  • value: 'John'

is equivalent in code to:

// p is of type Person;
p.name = 'John';

Inputs

  • object (Object): The object to update. Example: an object of type Person
  • property (Property): The property to update. Example: Person.name
  • value (Object): The value to set the property with. The type must match the type of the property. Example: John

Outputs

  • object (Object): The object.