The inequality operator (!=) compares two values. If the values are not equal, the result of the operation is TRUE. Otherwise, the result of the operation is FALSE. If the two values are strings, the operation is case-sensitive.
The inequality operator (~!=) only compares string values and is not case-sensitive.
Examples:
1 != 1
Result = FALSE
1 != 2
Result = TRUE
"sparrow" != "SPARROW"
Result = TRUE
"sparrow" ~!= "SPARROW"
Result = FALSE
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |