translating if to boole