Skip to main content
Version: 7.0

IS, AS operators

IS, AS operators create a property that implements classification.

Syntax

expression IS className
expression AS className

Description

The IS operator creates a property which returns TRUE if the value of the expression belongs to the specified class.

The AS operator creates a property which returns the expression value if this value belongs to the specified class.

Parameters

  • expression

    An expression which value is checked for belonging to the class.

  • className

    Class name. Class ID.

Examples

asOrder(object) = object AS Order;

person = DATA Human (Order);
isMale (Order o) = person(o) IS Male;