ASP If Then Statement Help?

carl

New member
I'm trying to get this If Then Statement to work:

Dim Movie_Link_Statement

If Movie_Link = "DNE" Then
Movie_Link_Statement="<li>asdf</li>"
Else
Movie_Link_Statement="<li><a href=""" & Movie_Link & """>Watch the " & Product_Name & "Movie</a></li>"
End If

Basically, the variable Movie_Link has been retrieved from a database. If there is a Movie_Link, it is in the form of a regular web address; if not, it is entered into the database as "DNE" (does not exist). If there is a link, the variable Movie_Link_Statement will display the properly formatted link in the html of my page; if not, there will be nothing displayed. In theory, it would work fine, but for some reason, the if statement is ignored, and only the else statement is applied.
 
Back
Top