Then (Adverb): used to introduce an inference based on what has already been said.  It links back to the idea that "you did it anyway".
Output the use of "then" in the following sentence.
I told you not to do it, but you did it anyway, then?