Signature
bool contains(String haystack, String needle)
Parameters
haystack : string to search in
needle : substring to look for
return value :
true when needle appears in haystack, otherwise falseReturns whether haystack contains needle.
An empty needle always returns true.
Example
print(contains("uce docs", "docs") ? "yes\n" : "no\n");
Output
yes