0
Icy_blue Posted 20 years ago
Science & IT

What does "else" mean in "if A then B else C" ?

0What does "else" mean in "if A then B else C" ?02br
02br
00Does it mean " if A then B, and if not A, then C", or "if A then B, unless C"? Very puzzled.02br
02br
00Thank you first0-
  

Top answer

0It means 01i 00otherwise02i 00. 0-

  • 0It means 01i 00otherwise02i 00.
  • 0-
Free · every Monday

Get the Weekly English Kit 📬

New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.

11 Answers
0
0It means 01i00otherwise02i00. For example, if A happens, then do B; if A does not happen, do C.0-
0
0 Thank you very much! 0-
0
0I have thought it for a long time. Maybe it goes this way:02br
02br
00If A is true, then perform operation B. Otherwise, perform operation C. 02br
02br
00In another words: "If the logic A then B is not true, then C happens"02br
02br
00Am I right?0-
0
0Hello Icy02br
02br
00That's right. For example:02br
02br
01font02font02br
02br
01font00If 02font00xyz = 1 01font00then02font00 [perform operation A] 01font00else02font00 [pe
0
Thank you MrP.

I didn’t see your answer until just now.

But I still feel it should like this: "If the logic A then B is not true, then C happens"

See this example:

If I'm a human being, then I'll metabolize, else I'm frozen under a certain degree.

If "then" &
0
Hello Icy

I think there may be two different structures in your original question:

1. If X, then do Y; else do Z.

2. If X, then Y is also true; else [i.e. if not X], Z is true.

#1 presents commands; #2 presents inferences.

But I think it's fine to use "else" in both!

MrP
0
I've learned it by heart.

Thank you very very much!
0
to Mrp

Can you give some examples.Emotion: smile
0
Hello Chenyj

Here are two:

1. If X, then do Y; else do Z.

— If you do not accept the terms and conditions, press Cancel now; otherwise, press OK.

2. If X, then Y is also true; else, Z is true.

— If Lydia's car is in her driveway, then she must be at home; otherwise, she's still at her dancing class.

Does that help?

MrP
0
Get it. Thank you.

Related Questions