Back to Discussions
31 comments
SteampunkExplorer•
No, this is about programming languages used for developing computer applications.
valkenar•
Agree with others.
In real life it's technically correct to could say
"If it's sunny we'll go to the beach, else if it is snowy we'll go sledding" but that's really archaic sounding and weird. More current would be to use "and": "If it's sunny we'll go to the beach and if it's snowing we'll go sledding" with the implied understanding that sunny and snowy don't happen together (at least not at a time you might go to the beach).
You might use "otherwise" like this "If it's sunny we'll go to the beach, if it is snowy we'll go sledding, otherwise we'll stay home"
veganbikepunk•
Otherwise would be how you'd say that in spoken English. The rest are various programming languages and would be written like:
var number = 1;
if ( number == 2) {
runThisFunction()
} else if (number == 1) {
runThisOtherFunction()
} else {
runThisTHirdFunction()
}
JasonMBernard•
I would say "but." Thankfully I don't need computer level precision in everyday conversations. Context provides the necessary meaning.
If it is sunny we will go to the beach. But if it is rainy we'll watch a movie.
Or I would have nothing to supply that logical gap.
If it is sunny we will go swimming. If it is rainy we will watch "Duck Tales."
pjjiveturkey•
No it's a programming term
If (condition) then
(Code to run)
Else if (condition 2) then
(Other code)
Else
(More code)
bigtime_porgrammer•
I speak like that in real life sometimes, but I'm a programmer so I'm usually describing some logic to another programmer that might as well be actual code.
rustierpete•
The only scenario where I would use else is „I have another appointment, else I‘d be there“ or „he is injured else he would be on the team.“ Native, southern British English speaker so might be different elsewhere.
SnooDonuts6494•
No.
pikleboiy•
Normally, no. My grandparents and parents use it for some reason, but this is not really used in English. The meme is about programming languages.
cubic_zirconia•
I do, but I'm a programmer.
You generally wouldn't hear it in standard English.
carl_armz•
Er else
seventeenMachine•
\>programminghumor
\>is this how natives speak
My_useless_alt•
Otherwise is actually used in English. Else if very occasionally. The others are just coding
scoofy•
I think that there is a bit of ambiguity here. My background is in philosophy of language, so I have a strong education in formal logic.
This post *is* about programming languages, but I think it's important to point out that these phrases *are* used as jargon in these technical fields.
Saying "else if" and especially "elif" *is* nonstandard, but when used as jargon it's not only perfectly correct, it's very effective language use. This is especially notable in writing where "if and only if" is written as "IFF" *regularly*, but not because it's natural. We do this *only* because IFF has an important technical meaning.
Omnisegaming•
No, we would simply say "if this happens, then this happens, or else this happens".
Programming languages use "else if" as primarily an additional _if_ statement, and using the word _else_ communicates that. Else statements can't exist on their own, hence why it's followed by if, and else saying this should only run when the previous if failed.
The meme is that "otherwise" is a way of saying "else", though I don't believe their use is identical. Programmers like brevity whenever possible, so else if is long to type, elif is short to type, and "otherwise" is overly verbose, which matches the American perception of the posh British whom are overly formal and verbose.
shgysk8zer0•
As a programmer, and if I'm trying to describe more complex steps and conditions, yes, maybe it'd say something like it. It's just built into my brain that way. I can't think of any less awkward way of describing the conditions either.
It's important to understand that `else if` gives another condition and set of instructions, and "otherwise" or `else` apply when none of the conditions are met.
Consider the following:
> Go to the store. If they have eggs, buy a dozen. If they have milk, buy a gallon. Otherwise just grab some cabbage.
Do you not milk if they have both eggs and milk? Do you buy cabbage if they have eggs but not milk? You could make some guesses by context, knowing they're all very different categories and none can substitute the other, but it'd be really confusing with different kinds of cheese or something.
The_Elite_Operator•
Its a post on a sub called programming humor. No its not said normally.
DustyMan818•
This is a meme about coding languages, not standard English.
la_espina•
nope, that's pretty much only used when programming or when discussing programming
tomalator•
Very rarely. Most of the time it will be a programming exclusive
Ancient-City-6829•
I say else in human language, but also I've been programming since childhood so it's just kinda how my brain frames logic. I suspect sometimes it comes across as a little nonstandard to people who aren't familiar with coding jargon. But it's understandable enough I think
Adzehole•
This is a programming thing, not a regular speech thing. Many programming languages will have a conditional functions that use "if" and "else if" to define the conditions. It's not something people say in other contexts.
pLeThOrAx•
You're not a programmer if you don't end by expressing your disgust with "fi"!
Super-Scallion3552•
Yep it's about programming 100% ![gif](emote|free_emotes_pack|grin)
chuvashi•
I say “or else”
AshenPheonix•
1) this is programming. Don't take it literally.
2) I've seen "If else" and "else if" used in real life, depending on the structure of the sentence they are talking about.
MakePhilosophy42•
Despite mostly using English words, programming languages and their syntax are not English grammar.
"Else if" is *binary operator speak* for what could be said in English as "Otherwise" (that was the joke)
Binary operators include : and, or, not ,if ,else. Theyre specific terms used to do maths in computer programming or with binary circuits and logic gates.
bestelle_•
i do but im a programmer
EndorphnOrphnMorphn•
In English, it's much more common to say "or else" than just "else". For example, "we'll have to leave by 4 or else traffic will get really bad". "Else" by itself is very rare
Kureteiyu•
I think these blocks should be
in case it is such that n % 4 == 0:
print("multiple of 4")
when the above condition is not met but instead the following holds n % 2 == 0:
print("even")
otherwise, given that all above statements are wrong:
print("odd")
It would be much more understandable in my opinion.
ebrum2010•
In regular language you'd usually say "or else", eg. "We have to buy food or else we won't have anything for dinner tonight."
In programming, you use 'if' to specify code that needs to be executed if a certain thing is true, you use 'else if' if you need to specify something else to check to see if it's true, and 'else' if all things checked are false. It basically means "otherwise" in the context but else is much easier to type hundreds of times in code. The if part is just because it's giving another parameter to check.