An easy one I hope

M

Miguel Orrego

I want to redirect to a page if a variable is greater than 1 so I'm using
the following code but get an incorrect syntax error, can somebody please
tell me the correct syntax?

Cheers.

Code:

If iRecordCount = >1 then
response.redirect "test.asp"
End If
 
E

Evertjan.

Miguel Orrego wrote on 19 aug 2003 in
microsoft.public.inetserver.asp.general:
I want to redirect to a page if a variable is greater than 1 so I'm using
the following code but get an incorrect syntax error, can somebody please
tell me the correct syntax?

Cheers.

Code:

If iRecordCount = >1 then
response.redirect "test.asp"
End If

It is not English free-for-all, but a computer language:

If iRecordCount > 1 then
 
T

Tim Slattery

Miguel Orrego said:
I want to redirect to a page if a variable is greater than 1 so I'm using
the following code but get an incorrect syntax error, can somebody please
tell me the correct syntax?

Cheers.

Code:

If iRecordCount = >1 then

You seem to have left a space between the equal sign and the greater
than sign, and you've got them in the wrong order. You're trying to
say "greater than or equal". The symbol for that is two characters: >=
with no space. So:

If iRecordCount >= 1 Then
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top