arduino IF / ElSE statement doesn't work..?

int redPin = 11;
int greenPin = 10;
int bluePin = 6;
int brightness = 15;
int blendBright = 5;

String colorChoice;

void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
pinMode(bluePin, OUTPUT);
}

void loop() {
Serial.println("Dark Lilac or Quiet Ocean? "); //prompting user to input color value
while (Serial.available()==0) {}

colorChoice = Serial.readString();

if (colorChoice == "Dark Lilac") {
Serial.println("You've chosen Dark Lilac");
Serial.println("");
analogWrite(redPin,blendBright);
analogWrite(greenPin, 0);
analogWrite(bluePin, brightness);
}

if (colorChoice == "Quiet Ocean"){
Serial.println("You've chosen Quiet Ocean");
Serial.println("");
analogWrite(redPin, 0);
analogWrite(greenPin, brightness);
analogWrite(bluePin, blendBright);
}

else {
Serial.println("");
Serial.println("Sorry, that's not available at the moment, please choose from what we have." );
Serial.println("");
}

}

I don't see an actual question here. But, I'll guarantee you that the C / C++ "if / else" construct, as implemented on Arduino, works as documented.

Try changing your serial monitor to "No line ending."

Also note that “Dark Lilac” is not “Quiet Ocean”.

You have to type the whole thing in with exact capitalization and no line ending. What about just 'd' or 'q'?

Hey lucca,

Try monitoring your serial to see if all 'println' are working. Add Serial.println(colorChoice); and make sure it gets the correct value. And as said above, it's case sensitive.