starts-with

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Expression Functions > String Functions >

starts-with

Returns true if the string supplied in the string argument starts with the string supplied in the start argument.

 

Signature

starts-with(string:string, start:string) -> Boolean

 

Parameters

Name

Type

Description

string

string

The input string.

start

string

The string value to check for.

 

Examples

The following expression returns true:

 

starts-with('cat', 'c')

 

The following expression returns false:

 

starts-with('cat', 'b')


© 2019 Altova GmbH