This page is also available in 3 other languages

==

[StringObject Operator]

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

myString1 == myString2

Parameters

myString1, myString2 - a String variable

Returns

true: if myString1 equals myString2

false: otherwise

See also