i'm using the arduino software to create a morse code decoder using the serial monitor so i enter a morse code such as ".-" as a text string and its displayed in the lcd as a alphanumeric text. so if i enter ".-" into the serial Monitor, "A" is displayed in lcd but it only works for single symbols not the dot and dash together is there anyway to make the if statement accept both the dots and dashes together as seen below //// #include <LiquidCrystal.h> LiquidCrystal lcd(12, 11, 5, 4, 3, 2); void setup() { lcd.begin(16, 2); Serial.begin(9600); } void loop() { char schar; if (Serial.available()) { schar = Serial.read(); Serial.write(schar); if (schar== '.-' ){ Serial.write('A'); lcd.print('a');}}}