STRING.equals

Compares a string to the content of a string variable.

Syntax

equals( str STRING )
       RETURNS BOOLEAN
  1. str is the string to compare with.

Usage

This method compares a string to the current STRING variable and returns TRUE if both strings match.

If the original STRING variable or the string passed as parameter is NULL, the result is FALSE.

Example

MAIN
  DEFINE s STRING
  LET s = "white"
  IF s.equals("white") THEN
     DISPLAY "Matches"
  END IF
END MAIN