Handle if/elsif/else conditions