• 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
comparing two identical strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

comparing two identical strings


  • Subject: comparing two identical strings
  • From: email@hidden
  • Date: Sat, 02 Feb 2002 23:31:46 EST

I'm a newbie with Applescript, and could use some help figuring out what Applescript doesn't like about the way I'm comparing variables.

I've got 2 strings which are areacodes of a phone #:

"display dialog x" yields:

703

and "display dialog y" yields:

703

I need to compare them and see if they are equal. If I do a:

if x = y then
display dialog "They're equal!"
end if

nothing happens. Do I need to convert these variables into something else to do this testing?


  • Follow-Ups:
    • Re: comparing two identical strings
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Help with moving the trash
  • Next by Date: Re: 'path to cleanup at startup folder'
  • Previous by thread: Re: Help with moving the trash
  • Next by thread: Re: comparing two identical strings
  • Index(es):
    • Date
    • Thread