Altova MapForce 2025 Basic Edition

Returns Boolean true if the string value supplied as argument contains the sub-string supplied as argument.

mf-func-contains

 

Languages

Built-in, C++, C#, Java, XQuery, XSLT 1.0, XSLT 2.0, XSLT 3.0.

 

Parameters

Name

Description

value

The input value (that is, the "haystack").

substring

The sub-string to look for (that is, the "needle").

 

Example

If the input value is "category" and substring is "cat", the function returns true.

© 2018-2024 Altova GmbH