contains Function (Compact 2013)

3/26/2014

Returns True if the first argument string contains the second argument string; otherwise returns False.

Syntax

boolean contains(string, string)

Parameters

  • string
    A string.
  • string
    A string.

Return Value

True if the first argument string contains the second argument string; otherwise returns False.

Remarks

If an argument is not of type string, it is first converted to a string and then evaluated.

The following function call returns False.

contains("mysampletest", "oba")

See Also

Reference

XPath String Functions