int x = 0; boolean result = (x++ == 0) || (x++ == 2);
,
result is true, x is 2
result is false, x is 2
result is false, x is 1
result is true, x is 1