• 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: Sun, 3 Feb 2002 03:06:42 EST

area codes [703 vs 703]

Mismatched types (string vs integer), as Paul said, would cause this error.
Other problems that could cause the error could also involve the presence of
a space in one of the strings, i.e.:
set x to " 703"
set y to "703"

Try defining both as integer in the following way:
set x to 703 as integer
set y to 703 as integer

or if you are using a long list of area codes that you are trying work
through, from within the script editor, open up the event log (to see where
the data bogs the code), and then use the following within a repeat statement
to force them into integers:

set x to ((x) as integer)
set y to ((y) as integer)

Good luck
=-= Marc


  • Prev by Date: Re: ACGI form parsing in OSX?
  • Next by Date: Re: 'path to cleanup at startup folder'
  • Previous by thread: Re: comparing two identical strings
  • Next by thread: Re: Interesting?
  • Index(es):
    • Date
    • Thread