Understand the difference
Ob introduces an indirect yes/no question or uncertainty: Ich weiß nicht, ob der Raum frei ist. Wenn introduces a condition or time link: Wenn der Raum frei ist, beginnen wir. Both clause types put the finite verb at the end, so meaning identifies the connector.
Do not use ob for every English if. I do not know if asks whether, but If it rains sets a condition and normally uses wenn.
How to practise: read the examples once, cover the English meanings and try explaining the choice aloud. Next, complete all four questions before opening their answers.
Four German examples with English meanings
Compare the meaning and sentence pattern, rather than choosing by English translation alone.
Practice: choose the right word
Choose ob for uncertainty about whether something is true, or wenn for the explicitly stated condition. Try each question before opening the answer. Where another answer is possible, the explanation notes it. These are self-check exercises, not exam scoring.
Question 1. Kannst du prüfen, ___ die Tür abgeschlossen ist? (whether)
Show answer and explanation for question 1
Answer: ob
The embedded yes/no question asks whether it is locked.
Question 2. ___ du morgen Zeit hast, komm bitte vorbei. (condition)
Show answer and explanation for question 2
Answer: Wenn
The visit depends on the condition that time is available.
Question 3. Wir wissen nicht, ___ das Paket heute ankommt. (whether)
Show answer and explanation for question 3
Answer: ob
Ob introduces uncertainty about a yes/no issue.
Question 4. Ich helfe dir, ___ du mich brauchst. (condition)
Show answer and explanation for question 4
Answer: wenn
The help is linked to an open condition, not an indirect question.
Use it in your own sentence
Contrast uncertainty about rain with a plan conditional on rain.
Try writing your answer before reading the model below. Other natural answers are possible.
One possible answer
Ich weiß nicht, ob es regnet. Wenn es regnet, bleiben wir drinnen.
Check your wording: Ob embeds a yes/no issue; wenn introduces the condition.
What to practise next
Write a new context for each word. Explain which meaning or object pattern makes your choice natural; some contexts allow both.
Try the gaps again on another day without reading the explanation first. If a choice is still unclear, use the linked grammar foundation before moving to another topic.