Development tools : Global functions : String category : contains
  
contains
Description
Returns whether a substring is part of a string.
Usage
Client side: Y
Server side: Y
Syntax
Boolean contains(String string, String subString)
Arguments
string
The string to be searched. The argument can be any string, if string is null, false will be returned.
subString
The string to search. The argument can be any string, if subString is null, false will be returned.
Return
Returns true if this string contains subString, false otherwise.
Example
contains("Hello", "ell")
returns true.
contains("Hello", "hey")
returns false.
Go up to
String category