As different as the code you used I'd say, why is there ||?
Did you use something to display the { }? that would change the result, can you give the code you used, it's clearly different from the one I gave.
Edit: it seems like I cannot tell which number is bigger, given two numbers, I edited my previous post