Forums
This topic is locked
If ... Then ... Else -- Please help!
Posted 17 Jan 2003 01:07:54
1
has voted
17 Jan 2003 01:07:54 Anonymous User posted:
Why won't this display the message when there is no value in the database?<%
If varTagline <> ""
Then Response.Write(varTagline)
Else Response.Write"Click the + or - to change image size"
End If
%>
Shouldn't this output "Click the + or - to change image size" ?
Why be difficult when you can be impossible?
Replies
Replied 17 Jan 2003 01:25:13
17 Jan 2003 01:25:13 Owen Eastwick replied:
Try:
<%
If varTagline <> "" Then
Response.Write(varTagline)
Else
Response.Write("Click the + or - to change image size"
End If
%>
Regards
Owen.
---------------------------------------------------
Used programming books and web development software for sale (UK only):
www.tdsf.co.uk/Shop.htm
Multiple Parameter UD4 / Access 2000 Search Tutorial:
www.tdsf.co.uk/tdsfdemo/
<%
If varTagline <> "" Then
Response.Write(varTagline)
Else
Response.Write("Click the + or - to change image size"
End If
%>
Regards
Owen.
---------------------------------------------------
Used programming books and web development software for sale (UK only):
www.tdsf.co.uk/Shop.htm
Multiple Parameter UD4 / Access 2000 Search Tutorial:
www.tdsf.co.uk/tdsfdemo/
Replied 17 Jan 2003 01:37:28
17 Jan 2003 01:37:28 Anonymous User replied:
Thank you very much Owen. There was that (sloppy syntax from fatigue), but more importantly it helps to preview the correct document (extreme fatigue). I appreciate all your help.
Why be difficult when you can be impossible?
Why be difficult when you can be impossible?