• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: exit repeat abuse;-)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exit repeat abuse;-)


  • Subject: Re: exit repeat abuse;-)
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 14 Jan 2010 08:19:15 -0700

On Jan 14, 2010, at 7:58 AM, Mark J. Reed wrote:

uh, isn't that better expressed as:

     -- do stuff
     If a is false then
        --do stuff you want to do if a is false
     end if

Well, "better" is subjective, so it depends who you ask.  My answer is
no, because then you have to look for the "end if" before finding out
that, in fact, there's nothing else after it inside the loop.  The
"exit repeat" makes that clear immediately.

How about this:

if a then
-- do nothing
else
--do stuff you want to do if a is false
end if

-- Michelle

-- 
Don't dream it.  Be it.  --RHPS

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: exit repeat abuse;-) (From: airdrummer <email@hidden>)
 >Re: exit repeat abuse;-) (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: exit repeat abuse;-)
  • Next by Date: Re: exit repeat abuse;-)
  • Previous by thread: Re: exit repeat abuse;-)
  • Next by thread: Re: exit repeat abuse;-)
  • Index(es):
    • Date
    • Thread