The || operator takes two boolean values and returns true if at least one of them is true.
'e' is not a bool, it's a char. In this situation it will be treated as true because it's a non-zero value. This means ct=='E'||'e' is equivalent to ct=='E'||true which will always evaluate to true.
To make it work you need to write the if statement as if (ct=='E'||ct=='e').