Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Unified Engineering

Undefined Values

  • Last UpdatedMay 25, 2022
  • 1 minute read

In order to permit expressions like ((DIAM GT 200.0) OR (TYPE EQ ’BOX’)), expressions must be able to cope with undefined values. Generally, applying an operator to one or more undefined arguments has an undefined result.

Two exceptions are: the use of the AND operator with a false argument, will result in FALSE, regardless of whether or not the remainder of the arguments are defined; and OR which returns TRUE if any of its arguments is TRUE. For example, consider applying the above expression when the current element is a box. DIAM is undefined; therefore (DIAM GT 200.0) is also undefined. However, (TYPE EQ ’BOX’) is certainly true and so the final result of the whole expression evaluates to TRUE.

An undefined result occurs when:

  • One of the operands or arguments of a function (except some cases of AND and OR) is undefined.

  • An attribute is unavailable for the corresponding element (for example, ’DIAM OF OWNER’ when the current element is a box).

  • An element is undefined (for example, ’OWNER’ when the current element is the WORLD).

  • An attribute is unset (for example, text attribute or User defined Atrtribute (UDA) of length 0).

  • A variable is undefined (for example, ’VVAL(!ARC6)’ where !ARC6 has never been initialized).

  • Two position constants are compared with GT, GE, LT or LE and they have no common coordinates (for example, ’N10 EQ E5’).

  • If the result of the whole expression is undefined, an error occurs.

Related Links
TitleResults for “How to create a CRG?”Also Available in