• 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: Bridge anyone? [not off topic]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bridge anyone? [not off topic]


  • Subject: Re: Bridge anyone? [not off topic]
  • From: kai <email@hidden>
  • Date: Fri, 5 Nov 2004 07:59:16 +0000


On Thu, 04 Nov 2004 11:01:37 +0000, Martin Orpen wrote:


[snip]

        set r to random number from 1 to 2
        if r is equal to 1 then
            set end of newDeck to contents of x
        else
            set beginning of newDeck to contents of x
        end if


[snip]

There must be a quicker way of doing the if/else bit, but I can¹t think of
it at the moment :-\


Though still an if/else routine, this more direct approach is faster, Martin:

----------------------------------

if some item of {true, false} then
	set newDeck's end to contents of x
else
	set newDeck's beginning to contents of x
end if

----------------------------------

---
kai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Bridge anyone? [not off topic]
      • From: Martin Orpen <email@hidden>
  • Prev by Date: Is there a bug in iCal's reschedule event?
  • Next by Date: Re: Bridge anyone? [not off topic]
  • Previous by thread: Re: Bridge anyone? [not off topic]
  • Next by thread: Re: Bridge anyone? [not off topic]
  • Index(es):
    • Date
    • Thread