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
-
expressionAn expression which value is checked for belonging to the class.
-
classNameClass name. Class ID.
Examples
asOrder(object) = object AS Order;
person = DATA Human (Order);
isMale (Order o) = person(o) IS Male;