The STRING data type as class / STRING data type methods |
Makes a case-insensitive string comparison.
equalsIgnoreCase( string STRING ) RETURNING result BOOLEAN
This method compares a string to the current STRING variable by ignoring the character case, and returns TRUE if both strings match.
If the original STRING variable or the string passed as parameter is NULL, the result with be FALSE.
MAIN DEFINE s STRING LET s = "white" IF s.equalsIgnoreCase("WHITE") THEN DISPLAY "Matches" END IF END MAIN