Description

Compares two Strings for equality. The comparison is case-sensitive, meaning the String "hello" is not equal to the String "HELLO". Functionally the same as string.equals()

Syntax

string1 == string2

Parameters

string1, string2 - a String variable

Returns

true: if string1 equals string2

false: otherwise

See also

Guide Home