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

myString1 != myString2

Parameters

myString1, myString2 - a String variable

Returns

true: if myString1 is different from myString2

false: otherwise

See also