Reference

Class

RiString

Name

startsWith

Description Tests if this string starts with the specified prefix
Syntax
startsWith(substr);
Parameters
Stringstring the prefix
Returns
booleantrue if the character sequence represented by the argument is a prefix of the character sequence represented by this string; false otherwise.
Note also that true will be returned if the argument is an empty string or is equal to this RiString object as determined by the equals() method.
Example
rs = new RiString("Who are you?"); 
rs.startsWith("W"); // true
Platform Java / Javascript