いいのか分からなかった

didn't know if it was okay

→ 良い
phrase Common #5,832
didn't know if it was okay Used when someone was unsure whether something was acceptable or the right thing to do. The related pattern ~のか分からない means “don't know whether/how...”
JA: 彼に聞いていいのか分からなかった。
EN: I didn't know if it was okay to ask him.

私達はどのに乗ればいいのか分からなかった

We didn't know which car we should get in.

トムどう説明すればいいのか分からなかったんだ

I didn't know how to explain it to Tom.

何を言っていいのか分からなかったので、彼は黙っていた

He stayed silent because he didn’t know what to say.