This page is also available in 3 other languages

!=

[StringObject Operator]

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