Is there a difference between "is equal to", "is" and "=" ?

Hi everyone,

I’m wondering if there’s a difference between “is equal to”, “is”, “=” ? My tests seem to verify there’s no difference in speed (repeating it 1.000.000 times and recording the time in a script). Are they all the same or are there differences between strings/text/numbers/unicode text/whatever ?

Thanks

Hi,

there is no difference. The terms are synonyms

= = is = is equal to = equal = equals
≠= isn’t = is not equal to = isn’t equal = does not equal = <> = !=
≤ = is less than or equal to = does not come after = is not greater than
≥ = is greater than or equal to = does not come before = is not less than

I believe they are synonyms:

See also: operators

Thanks both !

I tested this with all the synonims:

if text -4 thru -1 of Test is Test2 then
end if

Took 130 seconds to repeat 1.000.000 times → 1 time = 0.00013 seconds
I thought there maybe would be differences between text/numbers etc.

Thanks :smiley:

This kind of question is responded in the “must have” resource:

http://developer.apple.com/documentation/applescript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html

Yvan KOENIG (from FRANCE samedi 27 juin 2009 18:27:28)