Re: When a String is not equal to a String
Re: When a String is not equal to a String
- Subject: Re: When a String is not equal to a String
- From: JollyRoger <email@hidden>
- Date: Tue, 16 Apr 2002 07:05:50 -0500
On 4/15/2002 4:16 PM, "Dana McDonald" <email@hidden> wrote:
>
Ok, these two file names (strings) are exactly the same.
>
BUT when I do:
>
>
if str1 is equal to str2 then "do this"
>
"do this" never gets run. BUT:
>
>
if (str1 as string) is equal to (str2 as string) then "do this"
>
>
That works...
One very simple way around this is to use the = operator instead of the
words "is equal to":
if str1 = str2 then "do this"
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.