Using the first bit of code below I receive two warning messages: warning: string literal in condition x2
warning: string literal in condition
if input == \"N\" || \"n\" #do this else
change input == "N" || "n"
input == "N" || "n"
to
input == "N" || input == "n"
You must also use else if instead of else
else if
else
The warning is saying that instead of a boolean or test, you have a string literal, ' n', which always evaluates to true.