Class: List
Description
This method indicates whether a specified string is contained in the list.
Syntax
ListObject.contains(String element,String delimiter,
Boolean ignoreCase)
Parameters
element |
The string to search for in the list. |
delimiter |
A character that is used to delimit the values in the list. |
ignoreCase |
An option that indicates whether to ignore case when searching for the value. |
Returns
A Boolean:
1, if the string is found in the list
0, if the string is not found in the list
When Became Available
Profile v7.0
Example
// define a List object with some elements
// and see what it contains
type List myList = Class.new("List", "Aap:Noot:Mies")
// partial match shall fail
if myList.contains("No",":") write "yes?"
// succeeds due to ignoreCase parameter
if myList.contains("noot",":",1) write "yes!"