Stats

102 Contributors: 9 Wednesday, August 3, 2016
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial: riptutorial@gmail.com
Roadmap: roadmap

Comparisons

Syntax

  • != - Is not equal to

  • == - Is equal to

  • > - greater than

  • < - less than

  • >= - greater than or equal to

  • <= - less than or equal to

  • is - test if objects are the exact same object

  • is not = test if objects are not the exact same object

Parameters

ParameterDetails
xFirst item to be compared
ySecond item to be compared

Related Examples