Skip to content

StartsWith

Shaun Lawrence edited this page Nov 4, 2020 · 2 revisions

Returns a boolean result indicating whether the supplied text parameter starts with the supplied value.

StartsWith(text, value)

Parameters

text

The string text to search inside.

Type string
Required Yes

value

The string value to find at the start.

Type string
Required Yes

Examples

StartsWith("reading between the lines", "the")

Returns false in this example because 'the' is not at the start.

Clone this wiki locally