Recall that C++ treats 0 as false and any integer other than 0 as true. That is why you see the contorted expression, any integer other than 0, instead of just 1.
0
1