The only service I can think of is a pub.string:lookupTable in the WmPublic pacakge which takes in a String and a key and returns the value.
If you want to return true/false, I’d suggest using a Java service to do the work.
Something like
String key = "3";
String[] words = {"1","2","3","4","5"};
List<String> wordList = Arrays.asList(words);
if(wordList.contains(key)) {
return true;
}
return false;
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services