equalsIgnoreCase()

equalsIgnoreCase() is similar to equals() but is not case sensitive. It is used to compare the current string to another string value. The method returns an integer value, which is 1 (TRUE) if the compared values are equal and 0 (FALSE) if not:

DEFINE str1, str2 STRING

 

LET str1 = "WaRdRoBe"

LET str2 = "wArDrObE"

 

IF str1.equalsIgnoreCase(str2)

THEN DISPLAY "If you ignore the case, the text is the same."

END IF

 

 

 

Contact Us

Privacy Policy

Copyright © 2026 Querix, (UK) Ltd.