startsWith

The startsWith method determines whether a string starts with the characters of a specified string.

 

Syntax

System.Boolean startsWith(System.String searchvalue, System.Int32 length);

 

Parameters

searchvalue

String to search for

length

[Optional] Length of the string to search. If omitted, the default value is the length of the string.

 

Return Value

Returns Value True if the string starts with the characters, False otherwise.

 

Remarks

Member of string.

 

Example