Skip to main content
Version: 7.0

Classification (IS/AS)

Classification operators create properties that determine whether an object belongs to the class specified, which can be a user class or a built-in class. The value of the created property depends on whether the object belongs to that class:

OperatorObject belongs to the classObject does not belong
ISthe logical value TRUENULL
ASthe object itself, of the class specifiedNULL

Language

To implement classification operators, IS and AS operators are used.

Examples

asOrder(object) = object AS Order;

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