Post History
I would approach this be doing the following (in order of preference) If you follow a style guide, consult it. If you are writing about a specific coding language, consult that language's officia...
Answer
#3: Attribution notice added
Source: https://writers.stackexchange.com/a/33561 License name: CC BY-SA 3.0 License URL: https://creativecommons.org/licenses/by-sa/3.0/
#2: Initial revision
I would approach this be doing the following (in order of preference) - If you follow a style guide, consult it. - If you are writing about a specific coding language, consult that language's official documentation and see how they refer to that construct. (For example, I just looked in the Lua 5.3 reference and see that it uses `repeat–until` (with an en dash) to describe that kind of statement, so I would use that format in my own docs about Lua) - If neither of the above apply, use "`if... else` statement" or "`if-else` statement"—it doesn't matter which, but be consistent with your choice. As you stated in your question a `/` is generally a stand in for "or". In my opinion, it is very rarely used correctly for that purpose and is often the result of sloppy prose.