add (object) to (variable)

The add construct adds an item to a list of objects.

Purpose

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

Syntax

  • In decision models:

    add <object> to decision
  • In task models:

    add <object> to <variable>

Description

The <object> specifies the object that you want to add. The list in which you want to include this object corresponds to the type of the decision node output, which must be a list.

Example

The following action adds a string with the name of a race to the decision, which is a list of strings.

add "New matching race: " + the name of race to decision;