StringStartsWith
Determines whether a string starts with a specified prefix.
Method Signature
StringStartsWith(string=[string], substring=[string])Arguments
Argument
Type
Required
Description
Default
string
string
true
The string to check.
substring
string
true
The prefix to check for.
Examples
Check if a string starts with a prefix
result = "hello world".startsWith( "hello" );
writeOutput( result );
Result: true
Case-sensitive by default
result = "Hello World".startsWith( "hello" );
writeOutput( result );
Result: false
Using the member function
Result: true
Related
Last updated
Was this helpful?
