Proper Structure for Expressions with Array Attributes
- Last UpdatedMay 17, 2023
- 1 minute read
MyContainer or Me should be only used to refer to attributes on the object. They should not be used to navigate the hierarchy of an expression. For example, if the expression references an array, a reference with the syntax AnotherObject.IndexAttribute should be used to access the value of the array, and not MyContainer.AnotherObject.IndexAttribute. So the proper syntax for an expression that references an array would be:
MyContainer.ArrayUDA[AnotherObject.IndexAttribute] == n
Attempting to access this attribute using the syntax MyContainer.AnotherObject.IndexAttribute would result in the logging of warnings that the quality of the attribute is not accessible. This is because System Platform will not be able to resolve the reference properly.