Determines whether the beginning of this string matches the specified string when compared using the specified comparison option.

Syntax

Smartsite SXML CopyCode image Copy Code
boolean string.startswith(string value, string leftPart)
boolean string.startswith(string value, string leftPart, boolean ignoreCase)

Parameters

Name Data Type Description
value String The value.
leftPart String The left part to check for.
ignoreCase Boolean If set to true, ignore casing.

Return Value

Data Type Description
Boolean True if the value parameter matches the beginning of this string; otherwise, false.

Expand image Example

SXML