Utility Functions : List of Utility Functions : stm_list_contains_string

stm_list_contains_string

Function type: BOOLEAN

Description
Determines whether the specified string appears in the given list.
Syntax
stm_list_contains_string (list, item, status)
Arguments
 

 

Status Codes
Example
Suppose you want to check a list of strings for the presence of a specific string. Your template should contain the following statements:
VARIABLE
ACTIVITY act_id;
LIST OF STRING string_list;
INTEGER status;
.
.
IF stm_list_contains_string
(string_list, ’SPECIFICATION’, status) THEN
.
.
If ’SPECIFICATION’ appears in string_list, the statements following the IF statement are executed.