In a message dated 10-09-99, Rich Wonneberger said to David Noon about
"hstart wget?"
Hi Rich,
> Note the double equal sign.
RW>I've seen the double equal sign in DOS batch program. What
RW>does this do thats different then single equal?
In simplest terms, a single equal sign asks if the values are equal, whereas
a double equal sign asks if the bytes are exactly the same. Thus,
"A" = " A " is true
"A" == " A " is false
2 = 2.0 is true
2 == 2.0 is false
25 = 2.5E+1 is true
25 == 2.5E+1 is false
All character comparisons are case-sensitive. To make a case-insensitive
comparison use the TRANSLATE() built-in function. For example,
IF TRANSLATE(string_1) = TRANSLATE(string_2) THEN ...
performs a case-insensitive comparison of the variables string_1 and
string_2.
Regards
Dave
___
* MR/2 2.25 #353 * I use Windows...on my car, on my house, but not on my ...
--- Maximus/2 3.01
45
* Origin: Air Applewood, OS/2 Gateway to Essex 44-1279-792300 (2:257/609)
|