よいのかわからなかった

didn't know what to do

→ 良い
phrase Rare #28,152
didn't know what to do Usually follows a question word or an action to express not knowing what would be best or appropriate to do.
JA: 何を食べたらよいのかわからなかった。
EN: I didn't know what I should eat.

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

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

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

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

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

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

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

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