AppleScript exit if no action

Negate your 'fail' structure to make it an 'if not pass' instead.

display dialog "Continue" with icon caution buttons {"Exit", "Continue"} default button 1 giving up after 5
if the button returned of the result is not "Continue" then     
    return "exit"
else
    return "continue"
end if