• 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: Impossible "If"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Impossible "If"?


  • Subject: Re: Impossible "If"?
  • From: Paul Berkowitz <email@hidden>
  • Date: Sat, 19 May 2001 00:41:21 -0700

On 5/18/01 10:16 PM, "email@hidden" <email@hidden> wrote:

> instead, do this
>
> if length of myString is equal to "" then
> -- do stuff for the case where the string is empty
> end if
>
> While this does throw an error, it's not intuitive what the workaround is.
> Now you know.


Hmmm. What happens if you write

if length of myString is equal to 0 then
-- do stuff for the case where the string is empty
end if


Why should length of a string equal "" (a string, not an integer, except as
coerced to 0)?


--
Paul Berkowitz


  • Follow-Ups:
    • Re: Impossible "If"?
      • From: Andy Wylie <email@hidden>
References: 
 >Re: Re: Impossible "If"? (From: email@hidden)

  • Prev by Date: Re: Re: Impossible "If"?
  • Next by Date: Duration of local variables
  • Previous by thread: Re: Re: Impossible "If"?
  • Next by thread: Re: Impossible "If"?
  • Index(es):
    • Date
    • Thread