nsbcompile2: Implement logical operators, if and while