Link to home
Start Free TrialLog in
Avatar of gpyper
gpyper

asked on

Using If / then /else

I'm trying to impliment some code.  There are two chunks that are duplicates except for a few pieces in each. I need to set up an if statement to get it to work but because I have the same "Dim" on both chunks of code. I was getting the name is being redefined error.

Is there a proper way to use the if statement I was using this

<% If cstr(requestform("whatisit")) = cstr("server")  Then


buch of code here

else If cstr(requestform("whatisit")) = cstr("standalone")  Then


more code here


end if
end if

ASKER CERTIFIED SOLUTION
Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gj62
gj62

put the Dim outside the If statement.

BTW - this seems more like VB than C...
Avatar of gpyper

ASKER

Doh ... posted to the wrong bloody section.... free points