Значение идиомы not to know whether one is coming or going

[not to know whether one is coming or going] {v. phr.} To becompletely confused.

He was so perplexed he didn’t know whether hewas coming or going.

Compare: AT SEA.