The variable "RESULT" stores the result of a dialog. So you could do something like: DIALOG "text",1 IF RESULT==1 GOTO @INIT