add (an object) to (a collection)

The add construct adds an item to a collection.

Purpose

You use this construct in the action part of a rule to add an object to a collection of objects.

Syntax

add <an object> to <a list>

Description

The add <an object> keyword specifies the object that you want to add. The to <a list> defines the collection in which you want to include the object.

Example

The following rule adds a room to the favorite locations of an attendee.

when a favorite location request occurs, called 'the event'
then
    add the room of 'the event' to the favorite locations of 'the attendee';