Returns 1 if the string defined by @needle is a case-sensitive prefix for the string defined by @haystack; otherwise returns 0.
Example:
if( %stringIsPrefix( @input, "high" ) ) { talk @n You have chosen high! } else if( %stringIsPrefix( @input, "low" ) ) { talk @n You have chosen low! } else { talk @n You are an idiot! } endif |