comparing two identical strings
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