"Lawrence" <lawrence.hunt@gmail.comwrote in message
news:1177585905.342121.278400@r30g2000prh.googlegr oups.com...
Quote:
Hi
>
I have only begun to look into ASP due to an assignments requirements
(I usually code in PHP), one feature in PHP is to be able to do an
if...else statement, where if a certain statement is true then a chunk
of HTML can be outputted...
>
Basically I want to be able to do this in ASP to use with a simple
authentication system which I will construct.
>
I have just got a fat book on ASP, and am beginning to read through it
etc
>
Regards
>
Lawrence
>
Which language are you using in the ASP page?
vbscript
:-
<%
If BooleanExpression Then
%>
<!-- HTML Content here -->
<%
Else
%>
<!-- Alternative HTML Content here -->
<%
End If
%>
JScript:-
<%
if (booleanExpression)
{
%>
<!-- HTML Content here -->
<%
}
else
{
%>
<!-- Alternative HTML Content here -->
<%
}
%>