I have this if statement
Which is clearly getting a little ridiculous, but I'm also going to have to add a few more strcmp's later, and on top of that, I need to be able to accept a letter and its capital. Is there a way to shorten this while still making it clear, or is the way it is now the best approach?Code:if (strcmp(command, "p") == 0 || strcmp(command, "+") == 0 || strcmp(command, "-") == 0 || strcmp(command, "\n") == 0 || strcmp(command, ".") == 0 || (stringIsNum(command) == YES && stringToNum(command) > 0)) { lineNumber = printCommand(head, command, lineNumber); }