Rich Wonneberger wrote in a message to David Noon:
RW> *** Quoting David Noon to Eddy Thilleman dated 10-07-99 ***
> IF check == 'READY:' THEN
>
> Note the double equal sign.
RW> I've seen the double equal sign in DOS batch program. What does
RW> this do thats different then single equal?
== is a strict character by character string comparison.
=
Anything that can resolve to a numeric value is resolved and then compared
mathematically. Leading and trailing blanks are stripped. Case sensitive.
==
Strictly a string comparison. Blanks are not stripped. Case sensitive.
== is faster than = because of the lack of preprocessing. It is also safer if
all you are interested in is a character by character comparison.
L8r,
Ron
... f y cn rd ths, y cn gt gd jbs n cmptr prgrmng.
---
* Origin: River Canyon Rd. BBS Chattanooga,TN 423-886-2521 (1:362/627)
|