Want to add a function in my List class to delete nodes which are divisible by 2.

The `if` part is working, but in `else` case isn't working.

```
void List::ClearDv() {

   if(GetLength()>=1 && m_first->info%2==0) {
      DeleteAt(0);
      return;
   } 
   else{
      Node*T=m_first;
      while(T!=NULL)
      {
         T=T->link;
         if(T->info%2==0){
            Node* P=T;
            T=T->link;
            delete P;

         }
      }
   }
}

```