In the custom dialog box, you can define what the buttons say...make them "Yes" and "No".
The If test you are looking for is Get(LasMessageChoice)...check it out in the onboard help.
I tried Get(Last MessageChoice)="Yes"
but not working.
Finally I found it shoud be: