if elseif else with BOOL working