Post History
In this case I think what you want is if...else. The slash tends to be used to suggest alternatives: yes/no answer. But you are talking about a case where both are present. The hyphen is used t...
Answer
#4: Attribution notice removed
Source: https://writers.stackexchange.com/a/33562 License name: CC BY-SA 3.0 License URL: https://creativecommons.org/licenses/by-sa/3.0/
#3: Attribution notice added
Source: https://writers.stackexchange.com/a/33562 License name: CC BY-SA 3.0 License URL: https://creativecommons.org/licenses/by-sa/3.0/
#2: Initial revision
In this case I think what you want is if...else. The slash tends to be used to suggest alternatives: yes/no answer. But you are talking about a case where both are present. The hyphen is used to make a phrase into a word you can talk about. Instances have an is-a relationship to their class. But if and else are not consecutive words in these constructions. Ellipses are used to indicate elided text. There is other text between if and else, so if...else.