• 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: Booleans in positional parameter sub routines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Booleans in positional parameter sub routines


  • Subject: Re: Booleans in positional parameter sub routines
  • From: Nigel Garvey <email@hidden>
  • Date: Mon, 18 Dec 2000 01:32:24 +0000

Sun Real wrote on Mon, 18 Dec 2000 10:01:24 +1100:

>Trying to use the above, I came across this:
>
>to doSomething with noise -- works
> if noise then beep
>end doSomething
>
>to doSomething with noise -- execution error: "The variable noise is
>not defined."
> set a to 1
> if noise then beep
>end doSomething

Hi, Richard. Try it like this:

to doSomething given noise:noise -- NB: 'given'
set a to 1
if noise then beep
end doSomething

doSomething with noise

NG


  • Prev by Date: Re: Why won't the trash empty?
  • Next by Date: Re: newest file in a folder
  • Previous by thread: Booleans in positional parameter sub routines
  • Next by thread: directing tell to CPU on network
  • Index(es):
    • Date
    • Thread