B1 Confusable-words 10 min read मध्यम

If बनाम Else-if बनाम Elsif: क्या अंतर है?

कोड में 'अगर' के बाद 'वरना अगर' वाली शर्तें चेक करने के लिए if और else if इस्तेमाल होते हैं। elsif बस एक छोटा नाम है।

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
नमस्ते दोस्तों! आज हम इंग्लिश ग्रामर और लॉजिक के एक बहुत ही महत्वपूर्ण विषय पर बात करेंगे: if, else if, और elsif का सही इस्तेमाल। जब हम इंग्लिश में बात करते हैं या कोडिंग सीखते हैं, तो हम अक्सर 'शर्तों' (conditions) की बात करते हैं। हिंदी में हम इसे 'अगर-मगर' या 'शर्तिया वाक्य' कहते हैं। जैसे: «अगर बारिश हुई, तो मैं ऑफिस नहीं जाऊँगा।» यहाँ 'अगर' (if) एक शर्त है।
लेकिन जब हमारे पास एक से ज़्यादा विकल्प हों, तो मामला थोड़ा पेचीदा हो जाता है। इंग्लिश में if, else if, और else का इस्तेमाल बिल्कुल वैसे ही है जैसे आप किसी बाज़ार में ऑटो वाले से मोल-भाव (bargaining) करते समय करते हैं। आप कहते हैं: «अगर आप 50 रुपये लोगे, तो मैं बैठूँगा। अगर 60 लोगे, तो मैं सोचूँगा। वरना (else), मैं पैदल चला जाऊँगा।» यहाँ आपने एक लॉजिकल चेन बनाई है।
हिंदी व्याकरण में हमारे पास 'यदि', 'तो', 'अथवा', 'अन्यथा' जैसे शब्द हैं, लेकिन इंग्लिश में प्रोग्रामिंग और फॉर्मल राइटिंग में इन शब्दों का एक खास क्रम (sequence) होता है। यह समझना बहुत ज़रूरी है कि ये शब्द केवल शब्द नहीं, बल्कि एक 'निर्णय लेने की प्रक्रिया' (decision-making process) हैं। एक हिंदी भाषी होने के नाते, हम अक्सर हिंदी के 'अगर-अगर-अगर' स्ट्रक्चर को इंग्लिश में भी दोहरा देते हैं, जो गलत हो जाता है। इस लेख में हम सीखेंगे कि कैसे इन शब्दों का इस्तेमाल करके आप अपनी बात को और अधिक स्पष्ट और लॉजिकल बना सकते हैं।
### How This Grammar Works
इसे एक चाय की दुकान के उदाहरण से समझते हैं। मान लीजिए आप एक दुकान पर जाते हैं। दुकानदार के पास एक नियम है:
  1. 1अगर चाय गर्म है, तो उसे पियो।
  2. 2अगर चाय ठंडी है, तो उसे वापस कर दो।
  3. 3वरना (else), पानी पी लो।
यहाँ if पहली शर्त है। अगर यह सच है, तो काम हो गया। else if तब आता है जब पहली शर्त 'झूठी' (false) हो। अगर पहली शर्त पूरी नहीं हुई, तब ही दुकानदार दूसरी शर्त चेक करेगा। और else वह आखिरी रास्ता है जब कुछ भी काम न करे।
हिंदी व्याकरण में हम अक्सर 'अगर' का बार-बार इस्तेमाल करते हैं: «अगर ये हुआ तो ये करो, अगर वो हुआ तो वो करो।» इंग्लिश में else if का उपयोग यह सुनिश्चित करता है कि आप केवल एक ही परिणाम (outcome) पर पहुँचें। यह 'म्यूचुअली एक्सक्लूसिव' (mutually exclusive) होता है। इसका मतलब है कि एक बार एक शर्त पूरी हो गई, तो बाकी की शर्तें चेक ही नहीं की जाएंगी।
उदाहरण के लिए, अगर आप कहते हैं: If it is sunny, I will go out. Else if it is cloudy, I will stay in. तो अगर धूप निकली है, तो आप बाहर जाएंगे, और आप कभी भी 'cloudy' वाली शर्त को चेक नहीं करेंगे। यह 'शॉर्ट-सर्किटिंग' (short-circuiting) का सिद्धांत है, जो हिंदी के सामान्य बोलचाल में हम अक्सर अनदेखा कर देते हैं। इंग्लिश में यह स्ट्रक्चर आपको 'क्लैरिटी' देता है।
### Formation Pattern
इसका एक फिक्स्ड पैटर्न होता है। इसे आप नीचे दी गई टेबल से समझ सकते हैं।
| स्टेप | कीवर्ड | हिंदी अर्थ |
|---|---|---|
| 1 | if | अगर (पहली शर्त) |
| 2 | else if | या फिर अगर (दूसरी शर्त) |
| 3 | else | वरना (बाकी सब के लिए) |
यहाँ एक उदाहरण देखें:
If you are hungry, eat an apple. Else if you are thirsty, drink water. Else, just sleep.
इस पैटर्न को देखिए:
  1. 1If (शर्त 1)
  2. 2Else if (शर्त 2)
  3. 3Else (डिफ़ॉल्ट स्थिति)
यह स्ट्रक्चर किसी भी भाषा में एक 'सीढ़ी' की तरह काम करता है। अगर पहली सीढ़ी नहीं चढ़ी, तो दूसरी चेक होगी। अगर दूसरी भी नहीं, तो आखिरी विकल्प।
### When To Use It
इन्हें इस्तेमाल करने का सही समय वह है जब आपको एक 'प्रायोरिटी लिस्ट' बनानी हो।
  • Single if: जब केवल एक ही काम करना हो। If you pass, celebrate.
  • if-else: जब दो ही रास्ते हों। If it rains, take an auto; else, walk.
  • if-else if chain: जब बहुत सारे विकल्प हों। जैसे किसी कॉम्पिटिटिव एग्जाम का रिजल्ट: If score > 90, grade A. Else if score > 80, grade B. Else, grade C.
हिंदी में हम अक्सर 'या' (or) का इस्तेमाल करते हैं, लेकिन इंग्लिश में else if का इस्तेमाल तब करें जब आप एक के बाद एक विकल्प को खारिज (eliminate) कर रहे हों। यह ऑफिस की मीटिंग्स या किसी को इंस्ट्रक्शन देते समय बहुत काम आता है।
### Common Mistakes
  1. 1Independent ifs का इस्तेमाल: हिंदी भाषी अक्सर हर शर्त के लिए अलग if लगाते हैं। जैसे: If it is cold, wear a sweater. If it is raining, take an umbrella. अगर आप इसे अलग-अलग लिखते हैं, तो दोनों काम हो जाएंगे। लेकिन अगर आप else if का इस्तेमाल करेंगे, तो आप केवल एक ही काम करेंगे। यह L1 इंटरफेरेंस है क्योंकि हिंदी में हम शर्तों को एक साथ जोड़कर बोल देते हैं।
  2. 2elsif vs else if: कई लोग कोडिंग या इंग्लिश राइटिंग में elseif को एक शब्द लिख देते हैं। इंग्लिश ग्रामर में else if दो अलग शब्द हैं। यह गलती इसलिए होती है क्योंकि हिंदी में हम शब्दों को जोड़कर लिखने के आदी हैं (जैसे 'चाय-पानी')।
  3. 3गलत क्रम (Order of Conditions): लोग अक्सर बड़ी शर्त को पहले रख देते हैं। जैसे: If age > 10, child. Else if age > 18, adult. यह गलत है, क्योंकि 20 साल का व्यक्ति भी 10 से बड़ा है, तो उसे 'child' मान लिया जाएगा। हमेशा स्पेसिफिक शर्त पहले रखें।
### Contrast With Similar Patterns
यहाँ एक तुलनात्मक टेबल है जो आपको भ्रम दूर करने में मदद करेगी:
| विशेषता | if चेन | स्वतंत्र if स्टेटमेंट्स |
|---|---|---|
| लॉजिक | एक ही विकल्प चुना जाएगा | सभी शर्तें चेक होंगी |
| हिंदी में | या तो ये, या वो | ये भी और वो भी |
| उपयोग | प्राथमिकता (Priority) के लिए | अलग-अलग कार्यों के लिए |
### Quick FAQ
Q1: क्या else if और elsif एक ही हैं?
उत्तर: नहीं, यह प्रोग्रामिंग भाषा पर निर्भर करता है। इंग्लिश में सही शब्द else if ही है।
Q2: क्या मैं else के बिना if का इस्तेमाल कर सकता हूँ?
उत्तर: हाँ, बिल्कुल। else एक वैकल्पिक (optional) हिस्सा है।
Q3: हिंदी के 'अन्यथा' के लिए सबसे सही इंग्लिश शब्द क्या है?
उत्तर: 'Otherwise' या 'Else'।
Q4: क्या ये केवल कोडिंग के लिए हैं?
उत्तर: नहीं, ये लॉजिकल थिंकिंग के लिए हैं। आप इसे अपनी डेली लाइफ की बातचीत में भी इस्तेमाल कर सकते हैं ताकि आपकी बात स्पष्ट रहे।

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 बनाम Else-if बनाम Elsif: क्या अंतर है?
शब्द मकसद आम भाषाएँ उदाहरण सिंटैक्स
`if`
कंडीशनल ब्लॉक शुरू करता है। हमेशा चेक होता है।
सभी (JavaScript, Python, Ruby, Java, C++)
`if (x > 10)`
`else if`
पिछला `if` या `else if` गलत होने पर नई कंडीशन चेक करता है।
JavaScript, Java, C++, C#
`else if (x > 5)`
`elsif`
`else if` का छोटा सिनोनिम।
Ruby, Perl, Ada
`elsif x > 5`
`elif`
`else if` का एक और छोटा सिनोनिम।
Python, Bash scripting
`elif x > 5:`
`else`
एक कैच-ऑल ब्लॉक जो तब चलता है जब कोई पिछली कंडीशन सही न हो।
सभी (JavaScript, 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)

कंडीशनल लॉजिक फ्लो

कंडीशनल चेक

प्राथमिक चेक

  • if Starts the logic

सेकेंडरी चेक्स

  • else if Common follow-up
  • elsif Ruby/Perl version
  • elif Python version

फाइनल फॉलबैक

  • else If nothing matches

कीवर्ड तुलना: `else if` बनाम `elsif`

`else if`
Universally Understood Used in JS, Java, C++
Two Words Has a space
`elsif` / `elif`
Language Specific Ruby, Python, Perl
One Word Shorter, no space

मुझे कौन सा कीवर्ड इस्तेमाल करना चाहिए?

1

क्या आप एक नई कंडीशनल चेक शुरू कर रहे हैं?

YES
`if` का उपयोग करें
NO
अगले स्टेप पर जाएं
2

क्या आप Python में कोडिंग कर रहे हैं?

YES
`elif` का उपयोग करें
NO
अगले स्टेप पर जाएं
3

क्या आप Ruby या Perl में कोडिंग कर रहे हैं?

YES
`elsif` का उपयोग करें
NO
`else if` का उपयोग करें

भाषा परिवार के अनुसार कीवर्ड

🔵

C-स्टाइल (JS, Java, C#)

  • if
  • else if
  • else
🟡

Python

  • if
  • elif
  • else
🔴

Ruby और Perl

  • if
  • elsif
  • else

स्तर के अनुसार उदाहरण

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 सबसे ज़्यादा समझा जाने वाला शब्द है। इसे ही इस्तेमाल करो, जब तक कि खास तौर पर Ruby या Python जैसी भाषा की बात न हो।
When discussing code generally, say else if.
⚠️

`elif` और `elsif` में कन्फ्यूज़ मत हो

Python में elif यूज़ होता है। Ruby और Perl में elsif। गलत वाला यूज़ करने पर एरर आएगा। दोनों का काम एक ही है, पर सही कीवर्ड यूज़ करना ज़रूरी है।
Python uses elif, while Ruby uses elsif.
🎯

`switch` स्टेटमेंट का सोचो

अगर तुम बहुत सारी else if वाली शर्तें लिख रहे हो (5 से ज़्यादा), तो शायद switch स्टेटमेंट ज़्यादा साफ़ और बेहतर तरीका हो। ये एक वेरिएबल को कई वैल्यूज़ से मिलाने के लिए ही बना है।
Consider a switch statement for long chains of conditions.
🌍

ये बस 'स्टाइल' की बात है

else if, elsif, या elif में से चुनना सिर्फ भाषा बनाने वालों का फैसला है, जिसे 'सिंटैक्टिक शुगर' कहते हैं। कौन बेहतर है, इस पर बहस करना डेवलपर्स के बीच कॉफ़ी पर मज़ेदार बातचीत हो सकती है, पर कोई भी तकनीकी रूप से ज़्यादा बेहतर नहीं है। "The choice is a language design preference, 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 कोड ब्लॉक के लिए सही कीवर्ड चुनें।

if (score > 90) { grade = 'A'; } ___ (score > 80) { grade = 'B'; }

✓ Correct! ✗ Not quite. Correct answer: else if
JavaScript, Java और C++ की तरह, बाद की कंडीशनल चेक्स के लिए दो-शब्दों वाले else if का उपयोग करता है।
कौन सा वाक्य Python के कीवर्ड का सही वर्णन करता है? बहुविकल्पी

सही वाक्य चुनें:

✓ Correct! ✗ Not quite. Correct answer: Python अतिरिक्त कंडीशंस के लिए `elif` का उपयोग करता है।
elif वह विशिष्ट कीवर्ड है जिसका उपयोग Python 'else if' के शॉर्टहैंड के रूप में करता है।
Ruby के बारे में इस वाक्य में गलती ढूंढें और ठीक करें। Error Correction

Find and fix the mistake:

Ruby में एक और चेक जोड़ने के लिए, आप `else if` कीवर्ड का उपयोग करते हैं।

✓ Correct! ✗ Not quite. Correct answer: Ruby में एक और चेक जोड़ने के लिए, आप `elsif` कीवर्ड का उपयोग करते हैं।
Ruby उन विशिष्ट भाषाओं में से एक है जो elsif शॉर्टहैंड का उपयोग करती है।

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
वाक्य को सही शब्द से पूरा करें। खाली जगह भरो

मैं Ruby में लिख रहा हूँ, इसलिए मुझे `else if` के बजाय ___ का उपयोग करना होगा।

✓ Correct! ✗ Not quite. Correct answer: elsif
C++ डेवलपर के लिए कौन सा वाक्य सही है? बहुविकल्पी

सही वाक्य चुनें:

✓ Correct! ✗ Not quite. Correct answer: C++ में, दूसरी कंडीशन चेक करने के लिए `else if` स्टैंडर्ड है।
प्रोग्रामर की टिप्पणी में गलती ढूंढें और ठीक करें। Error Correction

मेरा Python कोड टूटा हुआ है। `elsif` स्टेटमेंट सिंटैक्स एरर दे रहा है।

✓ Correct! ✗ Not quite. Correct answer: मेरा Python कोड टूटा हुआ है। `elif` स्टेटमेंट सिंटैक्स एरर दे रहा है।
Python के लिए सही कीवर्ड चुनें। खाली जगह भरो

कोड चेक करता है `if user_type == 'admin':`, और फिर `___ user_type == 'editor':`

✓ Correct! ✗ Not quite. Correct answer: elif
प्रत्येक प्रोग्रामिंग भाषा को उसके सही कीवर्ड से मिलाएं। Match Pairs

भाषा को उसके 'else if' कीवर्ड से मिलाएं:

✓ Correct! ✗ Not quite. Correct answer: matched
अवधारणा का सही अंग्रेजी वाक्य में अनुवाद करें। अनुवाद

अंग्रेजी में अनुवाद करें: प्रोग्रामिंग के संदर्भ में, 'if' के बाद आने वाली कंडीशनल चेक के लिए सबसे सामान्य, व्यापक रूप से समझा जाने वाला शब्द क्या है?

✓ Correct! ✗ Not quite. Correct answer: ["The most generic term is else if.","It's generally called an else if statement."]
शब्दों को एक सही कथन बनाने के लिए क्रम में रखें। Sentence Reorder

इन शब्दों को एक वाक्य में व्यवस्थित करें:

✓ Correct! ✗ Not quite. Correct answer: `elsif` is Ruby's shorthand for `else if`
इनमें से कौन सा कथन सार्वभौमिक रूप से सत्य है? बहुविकल्पी

सही वाक्य चुनें:

✓ Correct! ✗ Not quite. Correct answer: सभी भाषाएँ कंडीशनल शुरू करने के लिए `if` का उपयोग करती हैं।
वाक्य में गलती ढूंढें और ठीक करें। Error Correction

JavaScript फ़ाइल में `elif` का उपयोग करना एक आम प्रैक्टिस है।

✓ Correct! ✗ Not quite. Correct answer: JavaScript फ़ाइल में `else if` का उपयोग करना एक आम प्रैक्टिस है।
Put the words in order to form a correct rule. Sentence Reorder

Arrange these words into a sentence:

✓ Correct! ✗ Not quite. Correct answer: You must use `elif` when coding in Python.
शब्द को उसके विवरण से मिलाएं। Match Pairs

कंडीशनल टर्म को उसकी भूमिका से मिलाएं:

✓ Correct! ✗ Not quite. Correct answer: matched
सही अंग्रेजी वाक्य टाइप करें। अनुवाद

अंग्रेजी में अनुवाद करें: किसी भाषा के `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."]
डेवलपर की विचार प्रक्रिया को पूरा करें। खाली जगह भरो

ठीक है, पहली चेक `if (is_ready)` है। अगली चेक `else if (is_waiting)` होनी चाहिए क्योंकि मैं Java में लिख रहा हूँ।

✓ Correct! ✗ Not quite. Correct answer: else if
Find and fix the mistake in this sentence. Error Correction

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

Related Grammar Rules

B1

बोली बनाम भाषा: क्या अंतर है?

### Overview जब हम अंग्रेजी सीखते हैं, तो अक्सर हमारे मन में यह सवाल आता है कि क्या हम एक 'भाषा' (language) सीख रहे हैं...

B1

आजकल बनाम अब-एक-दिन: क्या अंतर है?

### Overview नमस्ते! आज हम English के एक बहुत ही महत्वपूर्ण और अक्सर गलत इस्तेमाल किए जाने वाले शब्द `nowadays` के बारे...

B1

Let them बनाम Let they: क्या अंतर है?

### Overview English grammar में `let them` और `let they` के बीच का अंतर समझना उन बुनियादी चीज़ों में से एक है, जो आपकी...

B1

Quite बनाम Quiet: क्या अंतर है?

### Overview English भाषा सीखते समय हमारे सामने कई ऐसी चुनौतियाँ आती हैं जहाँ शब्द दिखने में लगभग एक जैसे होते हैं, लेक...

B1

Said बनाम Told: क्या अंतर है?

### Overview जब हम English सीखते हैं, तो कुछ शब्द ऐसे होते हैं जो दिखने में लगभग एक जैसे लगते हैं और उनका मतलब भी समान...

Was this helpful?
अभी तक कोई टिप्पणी नहीं। अपने विचार साझा करने वाले पहले व्यक्ति बनें!