implemented macro for building conditions out of boolean expressions