Report comment

Yes, absolutely!
I would say that the 'not' trick is probably the simplest and clearest way to do it.
I know of some people toggling using XOR as well.
I always find it interesting to see different approaches to the same problem.