Skip to content
L-SYSTEM

Anatomy of a Conditional: Two Clauses, One Sentence

Preview unit: this one is open without enrolling. The rest open after you enrol.

Explanations are in your language: your assistant gives them. This unit — text: English, translated by the course author from Russian. Teaches: English · Course material: Russian · explanations built for the language: Russian · Exam: English, not translated. How to connect an assistant

Take this lesson with your assistant

This is a trial. The server does not see it: progress is not saved and tasks are not counted. To keep progress, connect the course.

Anatomy of a Conditional Sentence

A conditional sentence consists of two parts — clauses:

  • the if-clause — the condition;
  • the main clause (result clause) — what follows from the condition.
If the migration fails,        we roll back automatically.
└──── if-клауза ────┘          └──── главная часть ────┘

Neither part lives on its own. If the migration fails leaves the reader waiting; we roll back automatically is grammatically independent but says nothing about when.

The order can be swapped

Both orders are correct and mean the same thing. What changes is the emphasis: whatever comes first is what you are drawing attention to.

Order Example Emphasis
Condition first If the migration fails, we roll back automatically. on the risk
Result first We roll back automatically if the migration fails. on the safeguard

In a status update for the team you would write the first. In documentation describing a feature — the second.

The comma rule

There is one rule, and it is worth learning, because it is mechanical:

if-clause first → comma. Main clause first → no comma.

  • ✅ If the build is red, don't merge.
  • ✅ Don't merge if the build is red.
  • ❌ Don't merge, if the build is red.
  • ❌ If the build is red don't merge.

Leaning on Russian. Russian punctuation always puts a comma before «если»: «Не мержи, если сборка красная». English does not: when the condition comes second, the word if itself marks the boundary, and the comma is superfluous. This error persists longest among strong learners — precisely because the Russian rule fires automatically.

q What comes first? a if-clause If the build is red, don't merge. q->a condition b main clause Don't merge if the build is red. q->b result ca add a comma a->ca cb no comma — don't carry over the Russian rule b->cb
FigureDiagram: whether to use a comma depends on what comes first
Description

A diamond with the question “What comes first?”. The arrow “condition” leads to the box “if-clause: If the build is red, don't merge.”, with “add a comma” below it. The arrow “result” leads to the box “main clause: Don't merge if the build is red.”, with “no comma — don't carry over the Russian rule” below it. The diagram reduces the rule to a single question about the order of the clauses.

Verb tense is not event time

This is the one idea that opens up the whole course.

Verb tense (tense) is the form: fails, failed, had failed. Event time (time) is when it happens: now, yesterday, next Tuesday.

In conditional sentences the two diverge:

  • If it rains tomorrow, the outdoor stand-up is cancelled. — present (rains), but the time is the future.
  • If we had more staging capacity, we would test this properly. — past (had), but the time is the present. This is about today's capacity, not last year's.

So what does shifting the tense back express? Distance from reality. Present — what is really possible. Past — what is imagined now. Past perfect — what is imagined in the past, what did not happen.

Sketchbook spread: on the left, in watercolour, an engineer at her desk; on the right, in pale pencil, the same woman on a beach
FigureSketchbook spread: on the left, in watercolour, an engineer at her desk; on the right, in pale pencil, the same woman on a beach
Description

An open old sketchbook on a rough wooden table. The left page is in warm watercolour: a young woman in a green jumper sits at her desk with a laptop and a mug, with rain outside the window. The right page is drawn only in pale pencil, with no colour: the same woman relaxes in a deckchair by the sea under a parasol, a closed notebook lying on the sand beside her. This is the key to the whole course: watercolour is reality (“right now I am working”), bare pencil is the imagined (“If I had a week off, I would be at the sea”). Past simple had here is about today, not about the past. The drawing does not show the verb form itself — only what is real and what is not.

Every drawing in the course works this way: watercolour is reality, pale pencil is the imagined. That is why the type cannot be "read off" the verb form. You have to ask what the speaker is claiming about the world. That — not a table of tenses — is what the course teaches.

The four traditional types

You have most likely met them. They are handy labels for four common cases; the course uses them, but the system does not end with them.

Name Pattern Example
Zero if + present, present If the cache key is missing, the service queries the database.
First if + present, will + infinitive If we merge today, we will ship on Friday.
Second if + past simple, would + infinitive If we had a second reviewer, the queue would move faster.
Third if + past perfect, would have + past participle If we had pinned the version, the build would not have broken.

And now four ordinary sentences from a working week at ENGAGE that do not fit into any type:

  • If the retry succeeded, the alert must have been noise. (inference about the past — u08)
  • If the load test passes, deploy to production. (instruction — u03)
  • If you assess the data thoroughly, you might find the root cause. (weakened prediction — u07)
  • If we had pinned the version, the build would not be broken right now. (cause in the past, consequence now — u06)

All four are normal English. They will come later. They are here only so that you stop expecting a number from every conditional sentence.

What actually changes

Three things, and they change almost independently:

  1. How real is the condition? — a fact, a likely future, an unlikely hypothesis or the impossible.
  2. What is the speaker doing? — stating, predicting, inferring, advising, instructing, regretting.
  3. How sure are they? — will / should / might in the same slot give very different degrees of certainty.

From here the course goes through these three axes one at a time.

Practice

Checking here changes nothing: answers start counting once you enrol on the course.

  1. We escalate to the on-call lead if the error rate stays above two percent for five minutes. Which part is the if-clause?

  2. If you had joined the call, you would have heard the client's actual deadline. Which part is the main clause (result clause)?

  3. Swap the clauses so that the main clause comes first, and add the punctuation. Write the whole sentence, with a capital letter and a full stop at the end: If the pipeline is green, the artefact is published automatically.

  4. Swap the clauses so that the if-clause comes first, and add the punctuation. Write the whole sentence, with a capital letter and a full stop at the end: The scheduler drops the job if the worker does not respond within thirty seconds.

  5. Swap the clauses so that the main clause comes first, and add the punctuation. Write the whole sentence, with a capital letter and a full stop at the end: If we had known about the rate limit, we would have batched the requests.

  6. Which sentence is punctuated correctly?

  7. Which sentence is punctuated correctly?

  8. You are translating a line from a runbook: “Откатываем релиз, если падает больше 1 % запросов”. Which translation is punctuated correctly?

  9. If the disk filled up, the log rotation was misconfigured. What time does this sentence refer to, if you ignore the verb form?

  10. If I had root access, I would check that myself. What time does this sentence refer to?

  11. If the release is signed off today, QA starts tomorrow. What time does the condition refer to?

  12. If we had pinned the version, the build would not be broken right now. How is time distributed?

  13. Look at the spread with the engineer: on the left, the desk in colour; on the right, the beach in pale pencil. What is real in the drawing?

  14. Which sentence fits the spread with the engineer best?

  15. If the cache key is missing, the service queries the database. Which label fits?

  16. If the retry succeeded, the alert must have been noise. Which label fits?

  17. Take a system you know well (a framework, a CI pipeline, your own project). Write two conditional sentences about how it behaves: one with the if-clause first, the other with the main clause first.

    This one is judged by the author’s rubric — your assistant does that, not the site.