Hi,
You can use the indexOf() method to check if one string contains another substring, e.g.,
var s = "abc";
if (s.indexOf("b") > -1) {
//contains
...
} else {
//does not contain
...
}
It's the standard method of String in JavaScript which is not included in the XSJS API JSDoc: Index
Best regards,
Wenjun