Re: Certain Answer
Re: Certain Answer
- Subject: Re: Certain Answer
- From: Bill White <email@hidden>
- Date: Sun, 01 Aug 2004 00:06:16 -0400
On 7/31/04 11:40 PM, Patrick Zittle <email@hidden> wrote:
>
What is the correct way to stop a repeat once a certain answer is entered into
>
a question dialog? I am asking a question and if the answer is wrong it will
>
ask the question again through a repeat command but I want it to stop after
>
the correct answer is put in.
Try this:
repeat
set theAnswer to text returned of (display dialog "What month is it?"
default answer "" buttons "Continue" default button 1) --watch line wraps!
if theAnswer is "August" then exit repeat
end repeat
HTH,
Bill
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.