-
Notifications
You must be signed in to change notification settings - Fork 1
Contains Operator
Martin Danielsson edited this page Jul 23, 2015
·
2 revisions
Checks whether haystack
contains needle
. Comes in two flavors, Contains
which takes casing into account, and ContainsIgnoreCase
which doesn't.
What | Type |
---|---|
Syntax | Contains[IgnoreCase](haystack, needle) |
haystack |
string |
needle |
string |
Return type | bool |
Example: ContainsIgnoreCase($companyName, "Ltd.")
By using the following XML code in the configuration file, the Contains
operator may be generally made behave as the ContainsIgnoreCase
operator:
<OperatorConfigs>
<OperatorConfig name="Contains">ignorecase</OperatorConfig>
</OperatorConfigs>