Function type:
BOOLEAN
Input/Output Note that the item’s data type must conform to the data type of the list. For example, iflist
is declared to beLIST
OF STATE
,item
must be of typeSTATE
(orELEMENT
).When the list consists of Statemate elements,item
contains the element’s ID. Suppose you want to check a list of Statemate elements for the presence of activityA1
. The elements of interest are assigned to the listelmnt_list
. Your template should contain the following statements:VARIABLE
ACTIVITY act_id;
LIST OF ELEMENT elmnt_list;
INTEGER status;
.
.
.
act_id := stm_r_ac(’A1’, status);
.
.
.
IF stm_list_contains_element (elmnt_list, act_id, status) THEN
.
.
.IfA1
appears inelmnt_list
, the statements following theIF
statement are executed. Note that the ID ofA1
is passed to the function, not its name).