よいのかわからなかった

didn't know what to do

→ 良い
phrase Rare #27,073
didn't know what to do Used in the pattern 〜てよいのかわからなかった to say that someone did not know what, how, or where they should do something. よい is often written いい in everyday speech.
JA: 初めての仕事だったので、何から始めてよいのかわからなかった。
EN: It was my first time doing the job, so I didn't know where to start.

どこでバスを降りたらよいのかわからなかったので運転手尋ねた

I didn't know where to get off the bus, so I asked the driver.

私は何をしたらよいのかわからなかったので彼に聞いた

I didn't know what to do, so I asked him.

あれほどベテランにもかかわらず、彼はどうしてよいのかわからなかった

Despite being such an experienced veteran, he didn’t know what to do.

何をしてよいのかわからなかったので、私は黙ってそこに立っていた

I didn't know what to do, so I just stood there silently.

怒ってよいのか笑ってよいのかわからなかった

I didn't know whether to be angry or laugh.