Reference.StringComparison History

Hide minor edits - Show changes to markup

October 04, 2010, at 09:03 PM by David A. Mellis -
Changed lines 9-10 from:

string1 == string2;

to:

string1 == string2

Changed lines 12-13 from:

string, string2: variables of type String

to:

string1, string2: variables of type String

October 03, 2010, at 08:10 PM by Tom Igoe -
Added line 22:
October 03, 2010, at 08:09 PM by Tom Igoe -
Added lines 1-23:

String

== 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

string1 == string2;

Parameters

string, string2: variables of type String

Returns

true: if string1 equals string2
false: otherwise

Example

See also

Share