+ 4

What is the difference between $x > $y and $x != $y

Both return true if $x is not equals to $y

21st Mar 2017, 5:09 PM
Wilson Bol
Wilson Bol - avatar
2 Answers
+ 5
In addition to your answer, the comparison operators - regardless it will always be true unless they're equal. Well done ;)
21st Mar 2017, 5:46 PM
Mark Foxx
Mark Foxx - avatar
0
If they are not equal then it returns true
20th May 2017, 8:46 PM
Paul Akubo
Paul Akubo - avatar