Type Function Library string.* Return value Boolean Revision Current Public Release (2018.3326) Keywords string, starts See also string.ends()
Returns a boolean true
or false
depending on whether a given string starts with the specified prefix
characters.
string.starts( s, prefix ) |
String. The string to be checked.
String. A string indicating the prefix to check against.
print ( string.starts( "Test123" , "Test" ) ) --> true print ( string.starts( "Test123" , "est" ) ) --> false print ( string.starts( "12345678" , "1234" ) ) --> true print ( string.starts( "12345678" , "01234" ) ) --> false |