contains

contains ( object longString , object search ) : 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