3.1 Property Syntax

NOC Script objects generally have a set of associative properties tied to them. Access these properties by name using the dot (.) notation:

writeln( formula.Elements.name )

In addition to this syntax, access properties by using array notation:

writeln( alarm['class'] )

This is useful because sometimes, as in the previous example, a property name might be a reserved word for the language or might be a property name with an invalid character, such as a colon (:) or a space.