Inhaltsverzeichnis

contains

The contains() function checks whether the second text is inside the first text. If this is the case, the logical (boolean) value true is returned, otherwise false.

Note: If one parameter is empty or null, e.g. an X-path expression is not set, then it is interpreted as an empty text.

Syntax:

contains('Text', 'Search Text')

Example:

contains(@SupplierGLN, '2')
contains('This is a', 'is') -> true
contains('This is a', 'one') -> false
contains('This is a', '') -> true
contains('', 'test') -> false