Telling an AS to run again?

I know this will sound like a really stupid question but I cannot remember how to tell a script to run again. What is the statement for this?

Example:


set doOverDialog to button returned of display dialog ¬ 
"Do you want to play again?" buttons {"Yes", "No"} ¬
default button "No" with icon 2
if doOverDialog = "Yes" then 
??????????
else
quit
end if

What goes where the ??? is? Sorry for being so simple-minded.

Jmax

No such thing as stupid questions…

Sounds like you need a repeat loop, something like this…

repeat
	display dialog "Hello" buttons {"OK", "Cancel"}
end repeat

Hope that helps

If Greg’s suggestion isn’t what you are looking for, maybe this will work.

set doOverDialog to button returned of (display dialog ¬
	"Do you want to play again?" buttons {"Yes", "No"} ¬
	default button "No" with icon 2)
if doOverDialog = "Yes" then
	run me
else
	return
end if