Controlling RGB LED with two buttons.

Ok, i've made a bit of progress. All i lack currently is how to choose which case to display. If i write "switch (color)", would i then increment my colors by writing something similar to this?

 if (digitalRead(buttonPin1)== LOW);
  {for (color>0; color<7; color++)
    {}
  if (color=7)
    {color-6;}
  }
  
  if (digitalRead(buttonPin2)== LOW);
  {for (color>1; color<8; color-- )
    {}
  if (color=1)
  {color+6;}
  }