code explaining if condition