Wenn du mude bist, warum gehst du nicht schlafen?
Warum is supposed to move the veb gehst to the end. Why doesnt it do so here (in the question mentioned above) ? Is it because that doesnt happen in questions? Cux when i type "i dont know why you dont sleep" into google translate, i get gehst at the end (as it should be in a statement.)
Also, i'd have to say "wenn bist du mude?" for "when are you (ever) tired?" instead of "wenn du mude bist?" (X) right? Btw google translate gives me "wann" for this question. Its the same thing though i think.. yea?
PS "Wenn du mude bist, warum gehst du nicht schlafen?" (source: Duolingo)
Google translate isnt good for sentences.
Warum gehst du nicht schlafen? This a question and this is the main clause and the verb has to be at this place. Questions either start with the finite verb or with a question word (and after that the finite verb).
Wenn du müde bist, is a conditional clause and again the verb is on the correct position. YOu can place the entire conditional clause before or after the main clause, but the word order within those 2 sentence stays the same.
The sentence i dont know why you dont sleep / Ich weiß nicht, warum du nicht schlafen gehst is a different sentence with different grammar. Again we have a main clause "Ich weiß nicht," and a subordinate clause to be more precise its an interrogative clause. So first clause that starts with warum is a question clause and its the main clause. The second clause that starts with warum is part of a declaration as interrogative clause. These different grammatical structures cause/require the different word order.
Then please rephrase your question.
Warum is supposed to move the veb gehst to the end.
This statement is not universal true. Explanation is above.
Why doesnt it do so here (in the question mentioned above!!) ?
I explained that questions have the finite verb at the beginning or after the questionword. Explanation is above.
Also, i'd have to say "wenn bist du mude?" for "when are you (ever) tired?" instead of "wenn du mude bist?" (X) right?
Both are wrong. Wann bist du müde (When are you tired). Wenn du müde bist, dann trinkst du zu wenig Kaffee. Here you need a main clause, the conditional clause alone isnt enough. When youre tired, then youre drinking not enough coffee.
But during casual conversation you might hear something like "... wenn du willst."
I propose you do not learn the language by memorizing where each part of the sentence pushes the other and whatnot. Concern yourself with learning the words and the context they are used in, and then involve yourself in the language by speaking, listnening and/ or writing it to get the proper feel for it. It will eventually click, and there is no knowing a language without it "clicking".