HELP : if then statement

I have a little problem about this simple IF ELSE STATEMENT.
What I wanted to do is that a movie will play once a button is clicked and will stay on the current frame if it has already reached a certain frame.

How is that done?

Please see my attachment

thanks you