Forum Moderators: open
The Response.Write for check_country correctly returns GBR but the Response.Write for clickhere is returning the Test Bust value. Not what I want!
It is obviously something simple but I have been kicking myself!
<%
check_country = (RsLoc.Fields("COUNTRY_CODE3").value)
IF check_country = "GBR" THEN
clickhere = "Test"
ELSE
clickhere = "Test Bust!"
END IF
Response.Write (check_country)
Response.Write (clickhere)
%>
In ASP I've found the same holds true sometimes. What we think are strings aren't brought in as strings.
So......try this:
check_country = cstr((RsLoc.Fields("COUNTRY_CODE3").value) )
It just might work.