Hi,
i was totally surprised that the 3rd solution doesn't work (Compiler says: ; is missing
).
bool isFoobar = true;
isFoobar == true ? isFoobar = false : isFoobar = true; // [1] works
( isFoobar ? isFoobar = false : isFoobar = true ); // [2] works
isFoobar ? isFoobar = false : isFoobar = true; // [3] failed
Ehm, why does the last one not work?