Implement bool expressions

Implements #160.
Ooh, I can do that? Yes, it absolutely would :) .