Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Certain Answer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Certain Answer



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.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.