Please enable JavaScript to view this site.

ESL Documentation

Action Statement

Add an existing object, or a class of objects, to a class of objects.

add {OBJECT_NAME|CLASS_NAME} to class DESTCLASS_NAME

OBJECT_NAME

The identifier for an object.

CLASS_NAME

The identifier for an object.

DESTCLASS_NAME

The identifier for a class containing objects.

Description

When you use the identifier CLASS_NAME, the items in that class are added, not the class itself.

The object, or class of objects, that is being added must already exist; it may have been previously defined, or it may have been previously created during runtime using the add action statement.

An object can be a member of many classes simultaneously. Adding an object to one class has no effect on the object's membership in other classes.

Example

 

response to AnimalChoice_MC

 add Monkey in Animals to class JungleBeasts_CL

 

response to Small

 add Small to class Size_CL

See Also

add Action Statement

class Definition