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