Bug in delay function

Oops...silly mistake.

As I stated I just bought an Arduino. I'm coding after a few years and mixed C++ with C lol.

Googling for bug in delay function did return some interesting results so I just wanted to make sure. Thanks for the quick reply though.

For anyone else landing here,

SOLVED BY

else if ((switching_delay>=550)&&(switching_delay<=1200))
        {
          decreaser = 50;
          switching_delay = switching_delay - decreaser;
        }

        else if ((switching_delay>=205)&&(switching_delay<=500))
        {
          decreaser = 5;
          switching_delay = switching_delay - decreaser;
        }
    
        else if ((switching_delay>=26)&&(switching_delay<=200))
        {
          decreaser = 1;
          switching_delay = switching_delay - decreaser;
        }

        else
        {
          
        }