Not know whether/if one is coming or going

To be very confused.

My friend did not know whether he was coming or going after the long airplane flight.