When button is pressed it goes to specific frame

So I have 13 buttons and each of these load the same movieclip. Now how do I make an if statement so that depending on what button is pressed it goes to a specific frame in this loaded movieclip?