tumblr tracker

Contains

Library Reference ›› String ››
Parent Previous Next

String.Contains


Namespace: String


Returns whether a string contains a substring.


retval = String.Contains(SearchIn, Value)


Parameters:

- SearchIn; string constant or variable or function returning a string; the string to search in

- Value; string constant or variable or function returning a string; the string to search for in param1


Returns:

True or False, depending on whether param2 is contained within param2; boolean value.


Example


$in = String.Contains("This is a test string.", "test");


After execution the $in variable will contain true as test is contained within This is a test string.