Hey, I am having some issues with Bluetooth in my program for my stranger

Hey, I am having some issues with Bluetooth in my program for my stranger things code. I want to have the option to run some patterns like Pride in my code, but when I run it in this code using ‘/’ for the if loop of Pride or a pattern, it doesn’t move and I have to keep sending ‘/’ for the pattern to move. When I remove everything from the bluetooth part it runs fine if nothing else is in the while loop. Does anyone know of a way to make the pattern work in this while loop? or have some experience on what I could change to make it work?

void loop() {
// Set string to incoming text
delay(10);
FastLED.show();
while (Serial.available() > 0) {
delay(50);
char inChar = Serial.read();
if (inChar == ‘’) { // Clear string using '’ input
fill_solid(leds, NUM_LEDS, CRGB::Black);
txtMsg = “”;
// erase the string so it doesnt print anything

  //set all the leds off
}
else if (inChar == '/') { // Clear string using '*' input
 pride();
FastLED.show();
}
else if (inChar == '%') { // Run other functions using specified inputs
  blinkConst();
}
else if (inChar == '&') { // Run other functions using specified inputs
  for (int i = 500; i >= 50; i -= 50)
  {
    blinkVar(i);
  }
}
else if (inChar == '$') { // Run other functions using specified inputs
  blinkRandom(50);
}
else if (inChar == '#') { // Run other functions using specified inputs
  blinkRow(50);
}
else if (
else {  // Other wise add input serial character to cleared string
  txtMsg += inChar;
}

}

//blinkBlink();
printChar(txtMsg);

}

Maybe when you send one of your special characters it sets a switch case choice, such as:

while (Serial.available() > 0) {


else if (inChar == ‘/’) {
var = 1;
}
else if (inChar == ‘%’) {
var = 2;
}


}//end while loop

switch (var) {
case 1: //run when var = 1
pride();
FastLED.show();
break;
case 2: //run when var = 2
blinkConst();
break;
default:
// if nothing else matches, do the default
// default is optional
break;
}

I was thinking about using switch cases thanks for the help!