• 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
Re: When a String is not equal to a String
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: When a String is not equal to a String
      • From: Ken Grimm <email@hidden>
References: 
 >When a String is not equal to a String (From: Dana McDonald <email@hidden>)

  • Prev by Date: Re: Somewhat OT but related- Perl Scripts in Script Menu
  • Next by Date: [ANN] April BAUG News
  • Previous by thread: Re: When a String is not equal to a String
  • Next by thread: Re: When a String is not equal to a String
  • Index(es):
    • Date
    • Thread