EntitySetValue
Alias:EntitySetValue, In
Output:Entity
Returns a copy of the entity with this property set. Will add a new property if the property is not already present.
| Parameter | Type | Required | Position | Summary |
|---|---|---|---|---|
| Entity | entity | ✔ | 1 | The entity to set the property on. |
| Property Set | string | ✔ | 2 | The name of the property to set. |
| Value To | T | ✔ | 3 | The new value of the property to set. |
Examples​
Example 1​
SCL​
EntitySetValue Entity: ('type': 'A', 'value': 1) Property: 'type' Value: 'C'
Expected Output​
('type': "C" 'value': 1)
Example 2​
SCL​
In ('type': 'C', 'value': 1) Set: 'type' To: 'A'
Expected Output​
('type': "A" 'value': 1)