MultiCompare
Top  Previous  Next


Compares a string with a list of strings, returns 1 if match is found, 0 if no match

MultiCompare is not case sensitive. Leading and trailing spaces are ignored.

MultiCompare (Source, CompareWithList)

Source
String to compare with items in list  

CompareWithList
List of items to compare source with  
Each item must end with "§"  
 
Examples
MessageBox MultiCompare(test,hello§world§)

Displays "0"

MessageBox MultiCompare( hello , hello § world §)

Displays "1"


If
 MultiCompare(hello world , hello sea § hello land § hello world §)=1 Then   
  MessageBox Match   
Else   
  MessageBox No match   
EndIf

Displays "Match"