For some reason the script engine may be looking at Count as a Text string
instead of a number. I just ran into this again today, to fix it i
converted both numbers to Longs while comparing them and this fixed the
problem, I am pretty sure if you do the same it will work properly.
And Response.Status will work just fine!
if cLng(Count) > clng(0)
Response.Status = "400"
else
Response.Status = "200"
end if
"Kevin Jackson" <kj******@powerwayinc.com> wrote in message
news:#S**************@TK2MSFTNGP12.phx.gbl...
If I have something like this...
if Count > 0
Response.Status = "400"
else
Response.Status = "200"
end if
The status is always set to 400 even if count is zero...
Am I missing something?
Thanks