EntityGetValue
Alias:EntityGetValue
, From
Output:The required type
Gets the value of a property from an entity
Parameter | Type | Required | Position | Summary |
---|---|---|---|---|
Entity | entity | ✔ | 1 | The entity to get the property from. |
Property Get | string | ✔ | 2 | The name of the property to get. Returns an empty string if the property is not present. |
Examples​
Example 1​
SCL​
(foo: 123).foo
Expected Output​
123
Example 2​
SCL​
(foo: 123)['foo']
Expected Output​
123
Example 3​
SCL​
(foo: (bar: 123))['foo.bar']
Expected Output​
123
Example 4​
SCL​
(foo: (bar: 123)).foo.bar
Expected Output​
123
Example 5​
SCL​
From ('type': 'C', 'value': 1) Get: 'value'
Expected Output​
1