home *** CD-ROM | disk | FTP | other *** search
- <%@ LANGUAGE = VBScript %>
- <% Option Explicit %>
-
- <HTML>
- <HEAD>
- <TITLE>Conditional Operator Sample</TITLE>
- </HEAD>
-
- <BODY BGCOLOR="White" topmargin="10" leftmargin="10">
-
-
- <!-- Display Header -->
-
- <font size="4" face="Arial, Helvetica">
- <b>Conditional Operator Sample</b></font><br>
-
- <hr size="1" color="#000000">
-
-
- <!-- If...Then example -->
-
- <P>The date is: <%=Now%></p>
-
-
- <%
- ' Check for AM/PM, and output appropriate message
-
- if (Right(Now,2)="AM") Then
-
- Response.Write("<P>Good Morning</p>")
-
- Else
-
- Response.Write("<P>Good Evening</p>")
-
- End If
- %>
-
- </BODY>
- </HTML>
-