Good evening." He raised his hat with a flourish, and walked away.
He said good morning and raised his hat, then walked away.