Description

Compares two Strings for difference. 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 is different from string2

false: otherwise

See also

Guide Home