You yourself wrote: "x++ is post increment, this means that the value of x is used then it is incremented"
Consider what that means:
x is 0
The expression is evaluated, 0 is false, so the expression is false.
The post increment happens, changing x from 0
to 1
.
(After the expression was evaluated)