B1 Confusable-words 10 min read ふつう

If vs. Else-if vs. Elsif: 違いは何ですか?

条件分岐の基本は ifelse if です。 elsif はRubyなど特定の言語で使われる「短縮形」だと覚えておけばOK!

Grammar Rule in 30 Seconds

Use 'if' to start a condition, 'else' for the alternative, and 'else if' for a second specific option.

  • Use 'if' for your first condition: 'If it rains, stay inside.' (max 20 words)
  • Use 'else' for everything else: 'If it's sunny, go out; else, stay home.'
  • Use 'else if' for a middle option: 'If it's hot, swim; else if it's cool, hike.'
Condition 1 (If) ➡️ Option A | Condition 2 (Else If) ➡️ Option B | No Condition (Else) ➡️ Option C

Overview

### Overview
英語を学習する際、私たちは単に単語を覚えるだけでなく、「論理の組み立て方」を学ぶ必要があります。特にビジネスや技術的な文脈、あるいは日常の意思決定において非常に重要になるのが、今回学習する ifelse if、そして elsif(または elif)といった条件分岐(Conditional Logic)の考え方です。
日本語では「もし〜なら、Aをする。そうでなくて、もし〜ならBをする。それ以外ならCをする」というように、流れるように条件を説明しますね。英語でもこの論理構造は全く同じですが、英語は日本語以上に「条件の優先順位」と「排他性(一方が選ばれたら他方は選ばれないこと)」を厳格に区別する言語です。この「論理の型」を身につけることは、単に文法的に正しい文を作るだけでなく、相手に誤解を与えない「論理的な英語」を話すための第一歩となります。
本稿では、プログラミングの世界でよく使われる用語をフックにしながら、英語における条件文の構造を、日本人が陥りやすい罠や文化的な背景を交えて深く掘り下げていきます。B1レベル(中級)の皆さんが、より自然で、かつ正確な英語を操れるようになるためのガイドです。電車の中での通勤時間や、カフェでのひと時に、じっくりと論理のパズルを解くような気持ちで読み進めてみてください。
### How This Grammar Works
英語の条件分岐の基本は、「もし(If)」という扉を最初に叩くことから始まります。日本語の「〜たら」「〜れば」に相当しますが、英語では文の冒頭に If を置くことで、これから条件を提示することを明確に宣言します。この「まず宣言する」というスタイルは、結論を先に述べる英語の特徴(SVO型)とも深く関わっています。
#### 1. 最初の条件:if
すべての論理は if から始まります。これは「第一優先の条件」です。例えば、あなたが同僚に「もし会議が長引いたら、先にランチに行ってください」と言う場合、If the meeting runs late, please go to lunch first. となります。この時、日本語では「会議が長引いたら」と最後に「ら」が来ますが、英語では最初に If が来ることで、聞き手は即座に「あ、これは条件の話だな」と心の準備ができます。
#### 2. 次点の条件:else if / elsif / elif
最初の if が「偽(False)」、つまり条件に当てはまらなかった場合に初めて検討されるのが else if です。日本語では「そうでなければ、もし〜」という表現にあたります。ここで重要なのは、「前の条件が満たされなかった場合のみ」という点です。英語の論理では、上から順番に条件をチェックしていき、一つでも「真(True)」が見つかれば、それ以降の条件は見向きもされません。これを「短絡評価(Short-circuiting)」と呼びますが、英語のコミュニケーションにおいてもこの「優先順位の意識」は非常に重要です。
#### 3. 最後の砦:else
どの条件にも当てはまらなかった場合の「その他すべて」を受け止めるのが else です。日本語の「それ以外の場合」ですね。これは条件式を伴いません。いわば「ゴミ箱」や「セーフティネット」のような役割を果たし、論理に漏れがないようにするためのものです。
| 構成要素 | 日本語のイメージ | 役割 |
|---|---|---|
| if | もし〜なら | 最初の、最も重要な条件 |
| else if | そうでなくて、もし〜なら | 2番目以降の代替条件(前の条件がダメな時だけ) |
| else | それ以外なら | どの条件にも合致しない時の最終手段 |
### Formation Pattern
英語の文法としてこれらの論理を組み立てる際、基本となるのは If + 主語 + 動詞, 主語 + 動詞 という形です。しかし、論理構造を説明する際には、以下のパターンを意識すると非常に分かりやすくなります。
#### 基本パターン(日常会話・ビジネス)
  • Pattern A (Simple If): If it rains, I will stay home.
  • Pattern B (If-Else): If you are free, let's have coffee. Else (Otherwise), I'll see you tomorrow.
  • Pattern C (Chain): If the price is low, I'll buy it. If it's a bit high, I'll think about it. Otherwise, I won't buy it.
ここで注意したいのは、日常会話では else if という言葉をそのまま使うよりも、otherwisealternatively、あるいは単に if を並べることが多いという点です。しかし、論理的な説明や手順書(マニュアル)、IT関連の英語では、else if やその短縮形が頻繁に登場します。
#### 構文のバリエーション(技術・論理英語)
プログラミング言語や論理学の文脈では、else if の書き方は言語によって異なりますが、英語としての意味は共通しています。
  • Standard English: else if (2単語)
  • Python Style: elif (1単語に短縮)
  • Ruby / Perl Style: elsif (1単語に短縮、'e'が抜ける)
これらは英語の「音の省略」や「タイピングの効率化」から生まれたものですが、根本にあるのは else + if の組み合わせです。ビジネスメールなどで「もしAプランがダメならBプラン、それもダメならCプラン」と説明する際は、以下のような構造を意識しましょう。
  1. 1If Plan A is feasible, we will proceed.
  2. 2If not (Else), and if Plan B is available, we will consider it.
  3. 3Otherwise (Else), we will cancel the project.
### When To Use It
どのような場面でこれらの使い分けが必要になるのか、具体的なシチュエーションを見ていきましょう。
#### シチュエーション1:コンビニのレジでの対応(Customer Service)
コンビニの店員さんが、袋が必要かどうかを確認するシーンを考えてみましょう。
  • If the customer needs a bag, add 3 yen to the total.(もし袋が必要なら、3円加算する)
  • Else if the customer has their own bag, say
    Thank you for your cooperation.
    (そうでなく、もしマイバッグを持っているなら、「ご協力ありがとうございます」と言う)
  • Else, just complete the transaction.(それ以外=袋の話が出ないなら、そのまま会計を終える)
ここでのポイントは、「排他性」です。袋が必要な人は、マイバッグを持っていないはずです。ですから、最初の if が成立したら、次の else if を確認する必要はありません。これが効率的な論理の流れです。
#### シチュエーション2:就職活動の優先順位(Job Hunting / 就活)
あなたが就職活動中で、複数の会社から内定をもらう可能性がある場合を考えます。
  • If Company A offers me a position, I will join them immediately.(もしA社から内定が出たら、即決する)
  • Else if Company B offers a higher salary than Company C, I will choose B.(そうでなく、もしB社がC社より高い給料を提示したら、B社を選ぶ)
  • Else, I will continue my job search.(それ以外=どちらもダメなら、就活を続ける)
この論理では、A社が第一志望であることが明確です。A社がダメだった時(else)に初めて、B社とC社の比較(if)が始まります。このように、自分の意思を整理して伝える際に、この構造は非常に役立ちます。
#### シチュエーション3:電車の運行状況(Commuting)
  • If the train is on time, I'll arrive at 9:00.
  • Else if the delay is less than 10 minutes, I'll be slightly late.
  • Else, I will take a taxi.
日本語では「電車が時間通りなら9時、10分未満の遅れなら少し遅刻、それ以上ならタクシー」と簡潔に言えますが、英語では If, Else if, Else を使って、条件の境界線をはっきりと示します。
### Common Mistakes
日本人学習者が特につまずきやすいポイントを3つ挙げます。これらは日本語の思考習慣が英語に影響を与えてしまう「母語干渉」が原因であることが多いです。
#### 1. すべてを独立した if で書いてしまう
これが最も多い間違いです。例えば、成績評価で「90点以上ならA、80点以上ならB」と言いたい時:
  • 間違い: If score >= 90, grade = A. If score >= 80, grade = B.
これだと、95点の人は最初の if でAになりますが、次の if(80点以上)にも当てはまってしまうため、最終的にBに上書きされてしまう可能性があります(論理上の欠陥)。
  • 正解: If score >= 90, grade = A. Else if score >= 80, grade = B.
Else if を使うことで、「90点以上ではなかった場合のみ、80点以上かどうかをチェックする」という流れになり、正しく評価されます。日本語の「〜たら」を単に if と訳すだけでなく、その条件が「前の条件とセットなのか、独立しているのか」を考える癖をつけましょう。
#### 2. else if の綴りミス(プログラミング混同)
英語の文章(メールやレポート)を書いている時に、ついつい elsifelif と書いてしまう人がいます。これらは特定のプログラミング言語の「予約語」であり、標準的な英語ではありません。ビジネス文書でこれを使うと、非常にカジュアル、あるいは「プログラミングの癖が抜けきっていない」という印象を与えてしまいます。文章中では必ず Else if(2単語)または Otherwise, if... と書くようにしましょう。
#### 3. else に条件を書いてしまう
  • 間違い: Else the weather is bad, we will stay home.
else は「それ以外すべて」を指すので、その後に具体的な条件(the weather is bad)を置くことはできません。条件を書きたいなら必ず if が必要です。この場合は、If the weather is bad... とするか、Otherwise, if the weather is bad... とするのが正解です。日本語の「それか、天気が悪ければ」という感覚に引っ張られないように注意が必要です。
### Contrast With Similar Patterns
条件を表す他の表現との違いを整理しておきましょう。これらを使い分けることで、表現の幅がぐっと広がります。
| 表現 | 意味 | 使いどころ |
|---|---|---|
| If... | もし〜なら | 最も一般的。ポジティブ・ネガティブ両方可。 |
| Unless... | 〜しない限り | if not とほぼ同じ。強い除外条件を表す。 |
| Whether... or not | 〜であろうとなかろうと | 条件の結果に関わらず、結論が変わらない時。 |
| In case... | 〜に備えて | 条件が「起こるかもしれない」という予防措置。 |
| Provided that... | 〜という条件で | 契約書などの堅い表現。「〜ということが保証されるなら」 |
特に ifunless の使い分けは重要です。Unless it rains, we will go.(雨が降らない限り、行きます)は、If it doesn't rain, we will go. と書き換えられますが、unless の方が「雨さえ降らなければ、他は大丈夫」というニュアンスが強くなります。
### Quick FAQ
Q1: else if は何個まで繋げていいのですか?
理論上、何個でも繋げることができます。しかし、あまりに多すぎると(例えば10個など)、聞き手や読み手は混乱してしまいます。英語では「3つ程度の選択肢」が最も理解されやすいとされています。それ以上になる場合は、グループ化するか、表などを使って説明するのがスマートです。
Q2: 会話で else if と言うのは不自然ですか?
口頭で else if とそのまま言うことはあまりありません。会話では But if...Or if...Alternatively... といった言葉が好まれます。ただし、論理的な議論をしている場や、ホワイトボードを使って説明しているような場面では else if という言葉を使うことで、条件の優先順位を明確にすることができます。
Q3: else を省略してもいいですか?
はい、可能です。else がない場合は、「どの条件にも当てはまらない時は、何もしない(現状維持)」という意味になります。例えば、「雨なら傘を持つ」という if 文だけで終われば、「晴れなら何もしない」ということが暗黙の了解となります。しかし、ビジネスの指示などでは、漏れを防ぐために else(そうでなければ、通常通り進めてください等)を明記することが推奨されます。
Q4: 日本語の「〜なら」と if は完全に同じですか?
いいえ、少し違います。日本語の「〜なら」は、相手の話を受けて「それなら〜」と言う時にも使いますが(例:「行くなら、私も行く」)、英語の if はより純粋な「条件」を表します。相手の話を受ける場合は In that case(その場合)などの表現の方がしっくりくることがあります。
英語の論理構造をマスターすることは、単なる文法知識を超えて、あなたの思考をクリアにし、世界中の人々と「誤解のない対話」をするための強力な武器になります。まずは今日、身の回りの出来事を if, else if, else で整理してみることから始めてみてください。頑張りましょう(Keep up the good work!)

The Logical Flow Table

Part Function Natural English Equivalent Example
If
Starts the condition
In the event that
If it rains...
Else if
Adds a second condition
But if / Or if
...else if it snows...
Else
The final alternative
Otherwise / Or else
...else, stay home.
Elsif
Technical contraction
N/A (Coding only)
elsif (x > 0)

Common Contractions and Phrases

Full Form Common Phrase Context
Or else
Do it, or else!
Warning/Threat
Else if
Or if
Conversation
If not
Unless
General usage
If so
If that is true
Confirmation

Meanings

These terms are used to create conditional sentences where an action depends on whether a specific requirement is met.

1

The Primary Condition (If)

Introduces the first requirement or possibility in a logical sequence.

“If you are hungry, we can eat now.”

“I will go if you go.”

2

The Alternative (Else)

Used to describe what happens if the 'if' condition is not met. In spoken English, often replaced by 'otherwise'.

“You must pay the fine, or else you will go to jail.”

“Eat your vegetables; else, no dessert!”

3

The Secondary Condition (Else-if)

Used when the first 'if' is false, but you want to check a second specific condition before giving up.

“If it's 10:00, I'm working; else if it's 12:00, I'm eating.”

“If the red light is on, stop; else if the yellow light is on, slow down.”

4

The Technical Contraction (Elsif)

A specific spelling used in programming languages (like Ruby or Perl) to mean 'else if'.

“The programmer used 'elsif' to save space in the code.”

“You won't find 'elsif' in a standard English dictionary.”

Reference Table

Reference table for If vs. Else-if vs. Elsif: 違いは何ですか?
用語 役割 よく使われる言語 構文の例
`if`
条件分岐を開始する。必ず最初にチェックされる。
全言語 (JS, Python, Ruby, Java, C++)
`if (x > 10)`
`else if`
前の条件が偽だった場合に、新しい条件をチェックする。
JavaScript, Java, C++, C#
`else if (x > 5)`
`elsif`
`else if` の短縮形。
Ruby, Perl, Ada
`elsif x > 5`
`elif`
Python流の `else if` 短縮形。
Python, Bash
`elif x > 5:`
`else`
どの条件にも当てはまらなかった時の最終手段。
全言語 (JS, Python, Ruby, Java, C++)
`else`

フォーマル度スペクトル

フォーマル
Should it rain, the event will be moved indoors; otherwise, it will remain outside.

Should it rain, the event will be moved indoors; otherwise, it will remain outside. (Event planning)

ニュートラル
If it rains, we'll go inside; else, we'll stay here.

If it rains, we'll go inside; else, we'll stay here. (Event planning)

カジュアル
If it rains, we're going in. If not, we're staying out.

If it rains, we're going in. If not, we're staying out. (Event planning)

スラング
Rain? We're inside. No rain? We're chillin' out here.

Rain? We're inside. No rain? We're chillin' out here. (Event planning)

レベル別の例文

1

If it is cold, wear a coat.

If it is cold, wear a coat.

2

If you are happy, smile.

If you are happy, smile.

3

I will come if you ask.

I will come if you ask.

4

If I see him, I will say hello.

If I see him, I will say hello.

1

If you don't like it, don't eat it.

If you don't like it, don't eat it.

2

We can go to the park, or else we can stay here.

We can go to the park, or else we can stay here.

3

If she calls, tell me.

If she calls, tell me.

4

If it rains, we will go to the cinema.

If it rains, we will go to the cinema.

1

If the price is low, buy it; else, wait for a sale.

If the price is low, buy it; else, wait for a sale.

2

If you are tired, sleep; else if you are bored, read a book.

If you are tired, sleep; else if you are bored, read a book.

3

You must study, else you will fail the exam.

You must study, else you will fail the exam.

4

If he arrives early, wait; else if he is late, call him.

If he arrives early, wait; else if he is late, call him.

1

If the results are inconclusive, we must retest; else, we proceed.

If the results are inconclusive, we must retest; else, we proceed.

2

If you had told me, I would have helped; else, I had no idea.

If you had told me, I would have helped; else, I had no idea.

3

The software checks if the user is logged in; else if the guest mode is on, it allows access.

The software checks if the user is logged in; else if the guest mode is on, it allows access.

4

If you find any errors, please let us know; else, enjoy the book.

If you find any errors, please let us know; else, enjoy the book.

1

Should the market crash, we have a backup; else, we remain invested.

Should the market crash, we have a backup; else, we remain invested.

2

If one considers the ethical implications, the choice is clear; else, it remains a gray area.

If one considers the ethical implications, the choice is clear; else, it remains a gray area.

3

The script uses an 'elsif' ladder to handle various user inputs efficiently.

The script uses an 'elsif' ladder to handle various user inputs efficiently.

4

If the treaty is signed, peace is possible; else, conflict is inevitable.

If the treaty is signed, peace is possible; else, conflict is inevitable.

1

Were it not for his intervention, the project would have failed; else, we would be celebrating now.

Were it not for his intervention, the project would have failed; else, we would be celebrating now.

2

The linguistic distinction between 'if' and 'else' mirrors the binary nature of human decision-making.

The linguistic distinction between 'if' and 'else' mirrors the binary nature of human decision-making.

3

If the premise holds, the conclusion follows; else, the entire argument collapses.

If the premise holds, the conclusion follows; else, the entire argument collapses.

4

The code was riddled with 'elsif' statements, suggesting a lack of polymorphic design.

The code was riddled with 'elsif' statements, suggesting a lack of polymorphic design.

間違えやすい

If vs. Else-if vs. Elsif: What's the Difference? If vs. Whether

Both can introduce options, but 'whether' is for two fixed choices, while 'if' is for a condition.

If vs. Else-if vs. Elsif: What's the Difference? Else vs. Otherwise

Learners use 'else' as a transition word, which is rare.

If vs. Else-if vs. Elsif: What's the Difference? If vs. When

'If' is for possibility; 'when' is for certainty.

よくある間違い

If it rain, I stay.

If it rains, I stay.

The 'if' clause often uses the present simple third-person 's'.

I will go if.

I will go if you go.

'If' needs a condition to follow it.

If I am happy then I smile.

If I am happy, I smile.

In modern English, 'then' is often unnecessary and can be replaced by a comma.

If it is hot? Yes.

Is it hot? If so, yes.

Don't use 'if' to ask a simple question.

If you want, else I go.

If you want, stay; otherwise, I'm going.

'Else' needs a result before it.

If it rains, or else we stay.

If it rains, we stay.

Don't mix 'if' and 'or else' in the same clause.

If I will see him, I will tell him.

If I see him, I will tell him.

Don't use 'will' in the 'if' clause.

I used elsif in my email.

I used 'or if' in my email.

'Elsif' is for coding only.

If it's red, stop, else if it's green, go.

If it's red, stop; if it's green, go.

'Else if' is grammatically correct but sounds robotic in speech.

He is coming, else?

He is coming, or what else?

'Else' cannot stand alone at the end of a question like this.

If I was you, I'd go.

If I were you, I'd go.

In formal English, use the subjunctive 'were'.

Should it rain, else we go.

Should it rain, we shall stay; otherwise, we go.

Inverted conditionals need formal balancing.

If the code has an else-if...

If the code has an 'else if'...

Even in technical writing, use the space unless referring to the keyword.

文型パターン

If it ___, I will ___.

I need to ___, else I will ___.

If you ___, then ___; else if you ___, then ___.

Should you ___, please ___.

Real World Usage

Texting constant

If u r free, let's hang. Else, ttyl!

Job Interview common

If I am hired, I will work hard; else, I will continue my search.

Ordering Food very common

If you have the vegan option, I'll take that; else, just the salad.

Travel common

If the flight is delayed, call the hotel; else, take a taxi.

Social Media occasional

If you like this post, share it! Else, just keep scrolling.

Coding constant

if (user.admin?) { show_dashboard } elsif (user.guest?) { show_welcome } else { redirect_to_login }

💡

迷ったら `else if` を使おう

プログラミング全般の話をする時は、最も一般的な 'else if' を使うのが無難です。
Use else if as the default unless you are specifically discussing a language like Ruby or Python.
⚠️

`elif` と `elsif` を混ぜないで!

Pythonなら elif、Rubyなら elsif です。綴りを間違えるとエラーになるので注意して。
Python uses elif. Ruby and Perl use elsif. Using the wrong one will cause an error.
🎯

条件が多すぎる時は `switch` 文を検討

もし else if が5つ以上続くようなら、 switch 文を使った方がコードがスッキリしますよ。
Consider a switch statement if you have a very long chain of else if statements.
🌍

これは「書き方の好み」の問題

どの綴りを使うかは言語設計者の好みの問題で、これを 'syntactic sugar(構文糖衣)' と呼びます。 "The choice between else if, elsif, or elif is purely a language design choice, often called 'syntactic sugar'."

Smart Tips

Change it to 'Otherwise'. It sounds much more natural to native ears.

Else, we can meet tomorrow. Otherwise, we can meet tomorrow.

Check if the book is about computer science. If not, it might be a typo!

He said elsif he was tired... He said that if he was tired...

Use 'Should you' instead of 'If you'.

If you need help, ask. Should you need help, please ask.

Use 'or else' at the end of the condition.

If you don't stop, I will be mad. Stop that, or else!

発音

/ɪf/ you /GO/, I /STAY/

The 'If' Stress

In a conditional sentence, the stress is usually on the 'if' and the main verb of the result.

Stay (rise)... else (fall) leave.

Else Intonation

When using 'else' as an alternative, your voice usually rises on the first option and falls on the 'else' option.

The Choice Pattern

If it's A ↗️, then B ↘️.

Conveys a clear logical consequence.

暗記しよう

記憶術

IF starts the car, ELSE IF changes gears, and ELSE is the parking brake.

視覚的連想

Imagine a traffic light. IF it's red, stop. ELSE IF it's yellow, slow down. ELSE (it must be green), go!

Rhyme

If for one, Else if for two, Else for when you're finally through.

Story

A traveler reaches a bridge. IF he has a coin, he crosses. ELSE IF he has a sword, he fights. ELSE, he turns back home.

Word Web

IfElseElse-ifOtherwiseUnlessConditionResult

チャレンジ

Write a 3-step instruction for making coffee using If, Else if, and Else.

文化メモ

In Silicon Valley and tech hubs, 'if-else' logic is often used as a metaphor for life decisions.

British speakers often use 'otherwise' or 'or else' more frequently than 'else' in casual conversation.

Legal documents use 'if' and 'else' (often as 'failing which') to create airtight contracts.

'If' comes from the Old English 'gif', meaning 'given that'. 'Else' comes from 'elles', meaning 'other'.

会話のきっかけ

If you could travel anywhere right now, where would you go?

If it rains this weekend, what are your backup plans?

What happens if you forget your keys?

If you were the president, what is the first law you would change?

日記のテーマ

Write about your morning routine using at least three 'if' statements.
Describe a difficult decision you made. Use 'if', 'else if', and 'otherwise'.
Imagine a world where it never rains. How would life be different? Use 'if' and 'else'.
Write a set of instructions for a robot to make a sandwich.

よくある間違い

Incorrect

正解


Incorrect

正解


Incorrect

正解


Incorrect

正解

Test Yourself

JavaScriptのコードブロックに適切なキーワードを選んでください。

✓ Correct! ✗ Not quite. Correct answer:
JavaScript、Java、C++などは、2単語の else if を使います。
Pythonのキーワードについて正しく説明している文を選んでください。

✓ Correct! ✗ Not quite. Correct answer:
elif は、Pythonが 'else if' の短縮形として採用している固有のキーワードです。
Rubyに関するこの文の間違いを見つけて直してください。

✓ Correct! ✗ Not quite. Correct answer:
Rubyは elsif という短縮形を使う数少ない言語の1つです。

Score: /3

練習問題

8 exercises
Choose the correct word to complete the sentence. 選択問題

If you are tired, go to bed; ___, you will be grumpy tomorrow.

✓ Correct! ✗ Not quite. Correct answer: else
'Else' provides the alternative result.
Fill in the blank with 'if', 'else', or 'else if'.

___ it is 5 PM, I leave work; ___ it is 6 PM, I am at the gym.

✓ Correct! ✗ Not quite. Correct answer: If / else if
The first starts the condition, the second adds another specific one.
Correct the error in this sentence. Error Correction

Find and fix the mistake:

If I will see her, I will tell her.

✓ Correct! ✗ Not quite. Correct answer: If I see her
We don't use 'will' in the 'if' clause.
Match the condition to the result. Match Pairs

1. If it's hot... 2. Else if it's cold... 3. Else...

✓ Correct! ✗ Not quite. Correct answer: 1-B, 2-A, 3-C
Matching logical conditions to appropriate actions.
Put the words in the correct order. Sentence Reorder

else / study / you / will / fail / hard

✓ Correct! ✗ Not quite. Correct answer: Study hard, else you will fail.
The command comes first, followed by the 'else' alternative.
Is this rule true or false? True False Rule

You can use 'elsif' in a formal business letter.

✓ Correct! ✗ Not quite. Correct answer: False
'Elsif' is a programming keyword, not a standard English word.
Complete the dialogue. Dialogue Completion

A: Are you coming to the party? B: If I finish my work, yes; ___, I'll have to stay home.

✓ Correct! ✗ Not quite. Correct answer: else
'Else' shows the alternative to finishing work.
Rewrite the sentence using 'if'. Sentence Transformation

Stay here or you will get wet.

✓ Correct! ✗ Not quite. Correct answer: If you don't stay here, you will get wet.
The 'or' structure can be transformed into a negative 'if' condition.

Score: /8

Practice Bank

14 exercises
正しい用語で文を完成させてください。 穴埋め問題

I'm writing in Ruby, so I need to use ___ instead of `else if`.

✓ Correct! ✗ Not quite. Correct answer: elsif
C++の開発者にとって正しい文はどれですか? 穴埋め問題

Choose the correct sentence:

✓ Correct! ✗ Not quite. Correct answer: In C++, `else if` is the standard for checking another condition.
このプログラマーのコメントの間違いを直してください。 穴埋め問題

My Python code is broken. The `elsif` statement is causing a syntax error.

✓ Correct! ✗ Not quite. Correct answer: My Python code is broken. The `elif` statement is causing a syntax error.
Pythonに適切なキーワードを選んでください。 穴埋め問題

The code checks `if user_type == 'admin':`, and then `___ user_type == 'editor':`

✓ Correct! ✗ Not quite. Correct answer: elif
プログラミング言語と、対応する 'else if' キーワードを組み合わせてください。 Match Pairs

Match the language to its 'else if' keyword:

✓ Correct! ✗ Not quite. Correct answer:
この概念を正しい英語の文章に訳してください。 穴埋め問題

Translate into English: プログラミングにおいて、'if'に続く条件チェックを指す、最も一般的で広く理解される用語は何ですか?

✓ Correct! ✗ Not quite. Correct answer: ["The most generic term is else if.","It's generally called an else if statement."]
単語を並べ替えて、正しい説明文を作ってください。 Sentence Reorder

Arrange these words into a sentence:

✓ Correct! ✗ Not quite. Correct answer: `elsif` is Ruby's shorthand for `else if`
普遍的に正しい文はどれですか? 穴埋め問題

Choose the correct sentence:

✓ Correct! ✗ Not quite. Correct answer: All languages use `if` to start a conditional.
文の中の間違いを見つけて直してください。 穴埋め問題

Using `elif` in a JavaScript file is a common practice.

✓ Correct! ✗ Not quite. Correct answer: Using `else if` in a JavaScript file is a common practice.
単語を並べ替えて、正しいルールを作ってください。 Sentence Reorder

Arrange these words into a sentence:

✓ Correct! ✗ Not quite. Correct answer: You must use `elif` when coding in Python.
用語とその役割を組み合わせてください。 Match Pairs

Match the conditional term to its role:

✓ Correct! ✗ Not quite. Correct answer:
正しい英語の文章を入力してください。 穴埋め問題

Translate into English: 言語が `else if` の代わりに `elsif` を使う主な理由は何ですか?

✓ Correct! ✗ Not quite. Correct answer: ["It's mainly for brevity and developer convenience.","The main reason is for conciseness.","It's a stylistic choice for making code shorter."]
開発者の思考プロセスを完成させてください。 穴埋め問題

Okay, the first check is `if (is_ready)`. The next check must be `___ (is_waiting)` because I am writing in Java.

✓ Correct! ✗ Not quite. Correct answer: else if
この文の間違いを見つけて直してください。 穴埋め問題

The main difference between `if` and `else if` is that `if` is optional.

✓ Correct! ✗ Not quite. Correct answer: The main difference between `if` and `else if` is that `else if` is optional.

Score: /14

よくある質問 (8)

In English, no. In programming languages like Ruby, yes. In writing, always use 'else if' or 'or if'.

Rarely. It usually follows a comma or a semicolon. Use 'Otherwise' to start a new sentence.

'Unless' means 'if not'. 'Unless it rains' is the same as 'If it doesn't rain'.

Only if the 'if' clause comes at the beginning of the sentence.

It can be! If you don't finish the sentence, it sounds like a threat. 'Do it, or else!'

Yes! 'Who else is coming?' or 'What else do you need?' are very common.

It's a shortcut to save typing and make the code run slightly faster in some older languages.

It's when you put an 'if' inside another 'if'. 'If it's Monday, then if it's raining, I stay home.'

Scaffolded Practice

1

1

2

2

3

3

4

4

Mastery Progress

Needs Practice

Improving

Strong

Mastered

In Other Languages

Spanish high

si / sino / o si no

Spanish has a specific word 'sino' for 'else' when it means 'but instead'.

French high

si / sinon

French 'si' can also mean 'yes' in response to a negative question, which 'if' cannot do.

German moderate

wenn / falls / sonst

German uses 'wenn' for both 'if' and 'when', which is a major point of confusion for learners.

Japanese low

moshi / nara / tara

Japanese conditionals are built into the verb conjugation, not just placed at the start of the sentence.

Arabic moderate

in / idha / law

English uses 'if' for all three, relying on verb tenses to show the difference.

Chinese moderate

rúguǒ / yàobù

Chinese often omits the 'if' word entirely if the context is clear.

Learning Path

Prerequisites

Was this helpful?
まだコメントがありません。最初に考えをシェアしましょう!