[thelist] Re: if...or...then in asp

Paul Cowan paul at wishlist.com.au
Mon Feb 25 14:51:00 CST 2002


Anthony Baratta [mailto:Anthony at Baratta.com] wrote:
> No. With the "OR", once the isNumeric fails it stops and
> won't evaluate the CInt.

Untrue. VBScript, at least in scripting engine 5.5, does NOT use
short-circuit evaluation.

Simple test case:

	if (false) or (cint("error_here") < 1) then
		response.write "Short-circuit evaluation"
	end if

and watch for the type mismatch.

Cheers,

Paul



More information about the thelist mailing list