Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can this be true?

Status
Not open for further replies.

christer99

IS-IT--Management
Dec 3, 2001
247
d1dif = 4.83742342

if (CDbl(d1dif)>0 and CDbl(d1dif) <2) then

it shouldn't execute above as d1dif is more than 2. Any ideas?
 
It isn't. Type the following in a .vbs file and execute it from a cmd prompt using cscript
Code:
d1dif = 4.83742342
if (CDbl(d1dif)>0 and CDbl(d1dif) <2) then
   WScript.echo "between " & CDbl(d1dif)
else
   WScript.echo "outside " & CDbl(d1dif)
end if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top