Skip to main content
Version: v0.17.0

StringContains

Alias:StringContains, DoesString, DoesStringContain

Output:SCLBool

Returns true if the String contains the substring.

ParameterTypeRequiredPositionDefault ValueSummary
Stringstring1The superstring to check
Substring
Contain
string2The substring to find
IgnoreCasebool3FalseWhether to ignore case when comparing strings.

Examples

Example 1

SCL

StringContains String: 'hello there' Substring: 'there'

Expected Output

True

Example 2

SCL

StringContains String: 'hello there' Substring: 'world'

Expected Output

False

Example 3

SCL

DoesString 'hello there' Contain: 'ello'

Expected Output

True