TIP: Click on subject to list as thread! ANSI
echo: os2rexx
to: Rich Wonneberger
from: Ron Mitchell
date: 1999-10-09 20:25:24
subject: hstart wget?

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)

SOURCE: echoes via The OS/2 BBS

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.