B1 Confusable-words 10 min read Medio

If vs. Else-if vs. Elsif: ¿Cuál es la diferencia?

Usa if para empezar, else if para añadir opciones y recuerda que elsif es solo un atajo para lenguajes específicos.

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
Comprender la lógica detrás de if, else if y elsif es fundamental no solo para quienes se adentran en el mundo de la tecnología, sino para cualquier estudiante de nivel B1 que desee dominar la lógica condicional en inglés. En esencia, estas estructuras nos permiten expresar decisiones y resultados basados en condiciones específicas. Imagina que estás navegando por tu cuenta de Netflix o decidiendo qué pedir en un café; tu cerebro está procesando constantemente estas ramificaciones lógicas.
En el día a día, usamos oraciones condicionales sin darnos cuenta. Por ejemplo: If it rains, I’ll take an umbrella. (Si llueve, llevaré un paraguas) o If the train is delayed, I'll call you; otherwise, I’ll be on time. (Si el tren se retrasa, te llamaré; de lo contrario, llegaré a tiempo). Estas estructuras son el puente que nos permite comunicar posibilidades y las acciones que se derivan de ellas con una precisión quirúrgica.
Para nosotros, los hispanohablantes, este concepto es muy natural porque nuestro idioma también sigue un patrón de pensamiento secuencial. No consideramos todas las posibilidades al mismo tiempo, sino que las evaluamos una tras otra hasta encontrar la que encaja. Aprender a usar if y sus variantes en inglés te dará las herramientas para articular no solo *qué* sucede, sino el camino de evaluación exacto que siguen tus pensamientos o instrucciones.
Es la diferencia entre hablar de forma básica y sonar como alguien que tiene un control total sobre la lógica de su discurso.
### How This Grammar Works
Imagina que estás en un restaurante en una ciudad de habla inglesa y estás explicando tus restricciones alimentarias. No quieres que el camarero ignore tus instrucciones ni que aplique todas las reglas a la vez. Quieres que siga una jerarquía.
Así es exactamente como funcionan if, else if y else: crean un camino de decisión mutuamente excluyente donde solo se ejecuta un bloque de acción específico.
Primero, la declaración if establece la condición primaria. Es la primera pregunta en tu proceso de decisión. Por ejemplo: If you have vegetarian options, I will order the lasagna. (Si tienen opciones vegetarianas, pediré la lasaña).
Si esta condición es verdadera (true), el proceso se detiene ahí y pides la lasaña. Todas las condiciones posteriores se ignoran por completo.
Si la condición inicial es falsa (false), el sistema mental (o el código) pasa a la siguiente condición, introducida por else if (o elsif en ciertos contextos técnicos). Una cláusula else if propone una alternativa que solo se evalúa si la anterior falló. Imagina: Else if you have fish, I will have the salmon. (Si no, si tienen pescado, comeré el salmón).
Aquí, el salmón solo es una opción si la lasaña vegetariana no estaba disponible.
Este proceso continúa por la cadena. Cada else if actúa como una puerta: solo se abre si las puertas anteriores permanecieron cerradas. Finalmente, si ninguna de las condiciones se cumple, el bloque opcional else ofrece una acción por defecto.
En español, solemos traducir este else como si no o de lo contrario. Por ejemplo: Else, I will just have a salad. (De lo contrario, solo comeré una ensalada). Esto asegura que siempre haya un camino a seguir, incluso cuando ninguna de las condiciones específicas se cumple.
Este mecanismo de cortocircuito (detener la evaluación en cuanto se halla una verdad) es lo que hace que estas estructuras sean tan eficientes.
### Formation Pattern
La formación de estas estructuras siempre comienza con un if primario, seguido de uno o más else if (o sus variantes), y puede terminar con un else. Es vital entender que, aunque la lógica es la misma, la palabra exacta que uses (else if, elsif o elif) dependerá del contexto, especialmente si estás hablando de lenguajes de programación o de documentación técnica.
En el inglés cotidiano y profesional, usamos la frase completa: else if. Sin embargo, en el mundo de la computación, que influye mucho en el inglés técnico que aprendemos en el nivel B1, verás variaciones. Aquí tienes cómo se comparan estas estructuras:
| Estructura en Inglés | Equivalente en Español | Función Lógica |
|---|---|---|
| if (condition) | Si (condición) | Evalúa la primera posibilidad. |
| else if (condition) | Si no, si (condición) | Evalúa una alternativa si la anterior fue falsa. |
| elsif / elif | (Igual que else if) | Variante abreviada usada en contextos técnicos. |
| else | De lo contrario / Si no | Acción final si nada más funcionó. |
El patrón visual sería algo así:
  • If [Condición A]: Acción A
  • Else if [Condición B]: Acción B
  • Else: Acción Final
¡Ojo! En español, a veces tendemos a usar simplemente si repetidamente, pero en inglés, para que la lógica sea clara y excluyente, el uso de else antes del if es lo que marca la diferencia entre opciones independientes y opciones jerarquizadas.
### When To Use It
Saber cuándo emplear cada variante es crucial para sonar natural y profesional. Aquí te explico las situaciones más comunes:
  1. 1Uso de un if solitario:
Lo usamos cuando solo nos importa un resultado específico y no hay una alternativa necesaria si no se cumple.
*Ejemplo:* If you find my keys, please let me know. (Si encuentras mis llaves, por favor avísame). Si no las encuentras, no hay una instrucción adicional.
  1. 1Uso de if-else (El binomio):
Ideal cuando solo hay dos caminos posibles. Es blanco o negro.
*Ejemplo:* If the link works, download the file; else, contact the administrator. (Si el enlace funciona, descarga el archivo; si no, contacta al administrador). Aquí no hay una tercera opción.
  1. 1La cadena if-else if-else (Múltiples opciones):
Este es el caso más versátil y se usa cuando tienes varias condiciones que se excluyen entre sí. Un ejemplo clásico es el sistema de prioridades en el trabajo:
  • If the task is urgent, do it now. (Si la tarea es urgente, hazla ahora).
  • Else if the task is important but not urgent, schedule it for tomorrow. (Si no, si la tarea es importante pero no urgente, prográmala para mañana).
  • Else, put it in the backlog. (De lo contrario, ponla en la lista de pendientes).
En este escenario, si la tarea es urgente, ya no te preocupas por programarla ni por el backlog. La primera ficha del dominó que cae detiene el resto. Esta estructura es vital para dar instrucciones claras en correos electrónicos o reuniones de equipo en inglés.
### Common Mistakes
Como hispanohablantes, tenemos ciertas tendencias que pueden jugarnos una mala pasada al usar estas estructuras en inglés. Aquí te detallo los errores más frecuentes:
  1. 1El error del Independent If (Confundir if con else if):
En español, a veces decimos:
Si llueve, me quedo. Si hace sol, salgo
. Si usamos dos if seguidos en inglés para situaciones que deberían ser excluyentes, podemos crear confusión lógica.
*Error:* If score > 80, you get a B. If score > 90, you get an A.
*Por qué es un problema:* Si un estudiante saca 95, ¡el sistema le daría primero una B y luego una A! Al usar else if, aseguras que una vez se cumpla la primera condición (en el orden correcto), las demás se ignoren.
  1. 1Traducir Sino directamente:
Muchos estudiantes confunden else con la palabra but o intentan usar otherwise de forma incorrecta. Recuerda que en una estructura lógica, else es el compañero natural de if. No digas if it's not red, but blue, di if it's not red, then it's blue o usa la estructura if-else correctamente.
  1. 1El orden de las condiciones (Logical Shadowing):
Este es un error de lógica que afecta tu comunicación en inglés. Si pones una condición muy general antes que una específica, la específica nunca se cumplirá.
*Ejemplo incorrecto:* If you are a human, you can enter. Else if you are a VIP, you get a free drink.
*El problema:* ¡Todos los VIPs son humanos! Por lo tanto, entrarán por la primera puerta y nunca llegarán a la condición de la bebida gratis. En inglés, siempre debemos ir de lo más específico a lo más general.
  1. 1Confusión de sintaxis (elsif vs else if):
En un examen de inglés o en un entorno profesional, escribir elsif (todo junto) puede parecer un error de ortografía si no estás en un contexto de programación puro (como Ruby). En la escritura formal, siempre usa las dos palabras: else if.
### Contrast With Similar Patterns
Es útil comparar estas estructuras con otras formas de tomar decisiones en inglés para saber cuál elegir según la situación.
| Estructura | Cuándo usarla | Ejemplo en inglés |
|---|---|---|
| If / Else if | Cuando las condiciones son rangos o comparaciones complejas. | If age > 18... |
| Switch / Case | Cuando comparas una sola variable contra muchos valores fijos. | Switch (day): Case Monday... |
| Independent Ifs | Cuando quieres que se evalúen TODAS las condiciones, sin importar si las anteriores fueron ciertas. | If it's cold, wear a coat. If it's raining, take an umbrella. (Puedes hacer ambas). |
La gran diferencia es que con if-else if, buscamos una sola respuesta correcta de una lista. Con una serie de if independientes, buscamos todas las respuestas que apliquen. Imagina una lista de la compra: `If they have apples, buy three.
If they have milk, buy one. Aquí quieres ambas cosas si están disponibles. Pero si dices: If you have apples, I'll take them; else if you have pears, I'll take those`, solo te llevarás una de las dos frutas.
### Quick FAQ
1. ¿Puedo usar else if tantas veces como quiera?
¡Sí! Puedes encadenar tantos else if como necesites. Sin embargo, si tienes más de cinco o seis, a veces es mejor reconsiderar si hay una forma más sencilla de explicarlo o usar una estructura como switch para que no parezca un laberinto.
2. ¿Es obligatorio terminar siempre con un else?
No, es opcional. Úsalo solo si quieres definir qué pasa cuando ninguna de tus condiciones anteriores se cumple. Si no pones un else y nada es verdadero, simplemente no pasa nada.
3. ¿Cuál es la diferencia real entre elsif y else if?
En el inglés hablado y escrito estándar, elsif no existe; es else if. elsif (o elif) son abreviaturas que inventaron los programadores para escribir menos código. Si estás escribiendo un correo a tu jefe, usa siempre else if.
4. ¿Cómo puedo sonar más natural al usar esto en una conversación?
En lugar de sonar como un robot, los nativos a menudo usan otherwise al principio de una oración para sustituir al else. Por ejemplo: We should leave now. Otherwise, we’ll miss the flight. (Deberíamos irnos ahora. De lo contrario, perderemos el vuelo).

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: ¿Cuál es la diferencia?
Término Propósito Lenguajes Comunes Ejemplo de Sintaxis
`if`
Inicia un bloque condicional.
Todos (JS, Python, Ruby)
`if (x > 10)`
`else if`
Nueva condición si la anterior fue falsa.
JavaScript, Java, C++
`else if (x > 5)`
`elsif`
Sinónimo corto de `else if`.
Ruby, Perl
`elsif x > 5`
`elif`
Sinónimo corto de `else if`.
Python, Bash
`elif x > 5:`
`else`
Bloque final si nada se cumplió.
Todos
`else`

Espectro de formalidad

Formal
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)

Neutral
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)

Informal
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)

Jerga
Rain? We're inside. No rain? We're chillin' out here.

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

Flujo de Lógica Condicional

Comprobación Condicional

Comprobación Primaria

  • if Starts the logic

Comprobaciones Secundarias

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

Respaldo Final

  • else If nothing matches

Comparación: `else if` vs. `elsif`

`else if`
Entendido Universalmente Used in JS, Java, C++
Dos Palabras Has a space
`elsif` / `elif`
Específico del Lenguaje Ruby, Python, Perl
Una Palabra Shorter, no space

¿Qué palabra clave debo usar?

1

¿Estás empezando una nueva condición?

YES
Usa `if`
NO
Ir al siguiente paso
2

¿Estás programando en Python?

YES
Usa `elif`
NO
Ir al siguiente paso
3

¿Estás programando en Ruby o Perl?

YES
Usa `elsif`
NO
Usa `else if`

Palabras Clave por Familia de Lenguaje

🔵

Estilo C (JS, Java, C#)

  • if
  • else if
  • else
🟡

Python

  • if
  • elif
  • else
🔴

Ruby & Perl

  • if
  • elsif
  • else

Ejemplos por nivel

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.

Fácil de confundir

If vs. Else-if vs. Elsif: What's the Difference? vs 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? vs Else vs. Otherwise

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

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

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

Errores comunes

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.

Patrones de oraciones

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 }

💡

Usa `else if` como estándar

Al hablar de lógica en general, 'else if' es el término más universal. Úsalo por defecto:
Use else if as the default term.
⚠️

No confundas `elif` y `elsif`

Python usa elif, mientras que Ruby usa elsif. Si te equivocas, tendrás un error:
Python uses elif, but Ruby uses elsif.
🎯

Prueba con un `switch`

Si tienes más de 5 condiciones, un switch es más limpio y organizado:
A switch statement might be cleaner for many conditions.
🌍

Es cuestión de estilo

Elegir entre uno u otro es puro diseño del lenguaje, algo que los programadores llaman 'azúcar sintáctico':
The choice is often just 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!

Pronunciación

/ɪ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.

Memorízalo

Mnemotecnia

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

Asociación visual

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

Desafío

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

Notas culturales

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'.

Inicios de conversación

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?

Temas para diario

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.

Errores comunes

Incorrect

Correcto


Incorrect

Correcto


Incorrect

Correcto


Incorrect

Correcto

Test Yourself

Elige la palabra clave correcta para un bloque de código en JavaScript.

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

✓ Correct! ✗ Not quite. Correct answer: else if
JavaScript usa las dos palabras else if por separado.
¿Qué frase describe correctamente la palabra clave para Python? Opción múltiple

Elige la opción correcta:

✓ Correct! ✗ Not quite. Correct answer: Python usa `elif` para condiciones adicionales.
elif es el término específico y abreviado que usa Python.
Encuentra y corrige el error en esta frase sobre Ruby. Error Correction

Find and fix the mistake:

To add another check in Ruby, you use the `else if` keyword.

✓ Correct! ✗ Not quite. Correct answer: To add another check in Ruby, you use the `elsif` keyword.
Ruby es uno de los lenguajes que prefiere la forma compacta elsif.

Score: /3

Ejercicios de practica

8 exercises
Choose the correct word to complete the sentence. Opción múltiple

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
Completa la frase con el término correcto. Completar huecos

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

✓ Correct! ✗ Not quite. Correct answer: elsif
¿Cuál frase es correcta para un desarrollador de C++? Opción múltiple

Elige la frase correcta:

✓ Correct! ✗ Not quite. Correct answer: In C++, `else if` is the standard for checking another condition.
Corrige el error en el comentario del programador. Error Correction

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.
Elige la palabra clave para Python. Completar huecos

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

✓ Correct! ✗ Not quite. Correct answer: elif
Une cada lenguaje con su término correcto. Match Pairs

Empareja el lenguaje con su palabra clave:

✓ Correct! ✗ Not quite. Correct answer: matched
Traduce el concepto a una frase correcta en inglés. Traducción

Traduce al inglés: En programación, ¿cuál es el término más genérico para una comprobación que sigue a un 'if'?

✓ Correct! ✗ Not quite. Correct answer: ["The most generic term is else if.","It's generally called an else if statement."]
Pon las palabras en orden para formar una declaración correcta. Sentence Reorder

Ordena las palabras:

✓ Correct! ✗ Not quite. Correct answer: `elsif` is Ruby's shorthand for `else if`
¿Cuál de estas afirmaciones es universalmente cierta? Opción múltiple

Elige la opción correcta:

✓ Correct! ✗ Not quite. Correct answer: All languages use `if` to start a conditional.
Encuentra y corrige el error en la frase. Error Correction

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.
Pon las palabras en orden para formar una regla correcta. Sentence Reorder

Ordena las palabras:

✓ Correct! ✗ Not quite. Correct answer: You must use `elif` when coding in Python.
Une el término con su descripción. Match Pairs

Empareja el término con su rol:

✓ Correct! ✗ Not quite. Correct answer: matched
Escribe la frase correcta en inglés. Traducción

Traduce al inglés: ¿Cuál es la razón principal para que un lenguaje use `elsif` en lugar de `else if`?

✓ 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."]
Completa el pensamiento del desarrollador. Completar huecos

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
Encuentra y corrige el error en esta frase. 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

Preguntas frecuentes (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?
¡No hay comentarios todavía. Sé el primero en compartir tus ideas!