Category: Text function
This function is a search function used to check if a string (text) starts with a specific text value (start_string). If so, this function returns TRUE. Otherwise, it returns FALSE.
Argument | Type | Description |
---|---|---|
text | Text | Any text, or value that can implicitly converted to text. |
start_string | Text | The text string to search for at the beginning of text. |
Return value type: Boolean (TRUE/FALSE)
This function is case sensitive.
This function ignores leading whitespace and other non-printing characters when matching start_string to the beginning of text.
startswith( 'Crimea', 'Crime' ) //Returns TRUE
startswith( 'IBM', 'i' ) //Returns FALSE (unmatched due to case)
startswith(' Ruthless', ' Ruth') //Returns TRUE (leading whitespace ignored)