contains ( object longString , object search , boolean[default:false] _ignoreCase ) : boolean
Search if longString contains search.
Example
str = "This product is in stock"
if(contains(str,"in stock")) // true
{
console("Product is in stock !")
}
else
{
console("Product is not in stock !")
}
Parameters
longString
The string to search in
search
The string to search for
_ignoreCase (optional)
If true, the case is ignored.