String testString1 = "test"; String testString2 = "test"; if(testString1.compareTo(testString2)) { TextIO.put("Strings are equal"); }