• 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: checking values in property problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: checking values in property problem


  • Subject: Re: checking values in property problem
  • From: "Arthur J Knapp" <email@hidden>
  • Date: Fri, 11 May 2001 09:33:22 -0400

> Date: Fri, 11 May 2001 01:16:21 +0200
> From: ben gurion <email@hidden>
> Subject: checking values in property problem

> i really can't figure out what i'm doin wrong here:
>
>>property app_1 : ""
>>property app_2 : ""
>
>>if app_1 = "" or app_1 = "" then
>>-- write something to empty properties..
>>end if

> The if handler simply ignores the contents of the properties.. no matter
> what i try, or if i try different notation like property app_1 : 0 or
> property app_1 : {} the whole if construction is simply skipped...

Other than the fact that you wrote app_1 twice, there isn't any
obvious problem. Perhaps if you send a little more code.

What happens if you do this:

property app_1 : ""
property app_2 : ""

if app_1 = "" or app_2 = "" then

display dialog "At least one is an empty string"

set app_1 to 0

end if

if app_1 = "" or app_2 = "" then

display dialog "At least one is an empty string"

else

display dialog "At least one is NOT an empty string"

end


Arthur J. Knapp
http://www.stellarvisions.com
mailto:email@hidden

Hey, check out:
http://www.natural-innovations.com/as/


  • Prev by Date: Re: Talking to external hardware
  • Next by Date: Re: Rogue list?
  • Previous by thread: Re: checking values in property problem
  • Next by thread: Re: checking values in property problem
  • Index(es):
    • Date
    • Thread