Contains Operator - Haufe-Lexware/haufe.no-frills-transformation GitHub Wiki
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.")
Operator Configuration
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>