• 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: Null
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Null


  • Subject: Re: Null
  • From: Christopher Nebel <email@hidden>
  • Date: Thu, 9 Jan 2003 11:40:02 -0800

On Thursday, January 9, 2003, at 12:47 AM, Gary Lists wrote:

On or about 1/8/03 3:50 PM, Christopher Nebel wrote:

The upshot of this is that "null" is indeed a defined identifier in AppleScript, but I don't think it means anything useful -- there's no implementation behind it. "missing value" is the thing to use in scripts.

To help me (and others...?) get things straight, I've seen some scripts (Paul B, I think) that use something like:

property myvar : missing value

In what way should we be using that as an initial value, and what is the logical operator for comparison of that variable?

if myvar = missing value -- this?

Yep, that's the correct form. Such a script is just using "missing value" as a distinctive value to indicate that the property hasn't been properly filled in yet. Using "missing value" this way is nice because it's self-documenting, but it's not intrinsically better than, say, an empty string or an empty list.


--Chris Nebel
AppleScript Engineering
_______________________________________________
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.

References: 
 >Re: Null (From: Gary Lists <email@hidden>)

  • Prev by Date: Re: GUI scripting 101
  • Next by Date: Re: Address Book
  • Previous by thread: Re: Null
  • Next by thread: Re: Null
  • Index(es):
    • Date
    • Thread