<%@ page import="diamondedge.asp.*,diamondedge.util.*,diamondedge.ado.*" %>
<%!
%>
<%
boolean blnVariable = false;
String strVariable = "";
int intVariable = 0;
Asp.init( request, response, out );
%>
<HTML>
<HEAD>
<TITLE>Variable Sample</TITLE>
</HEAD>
<BODY BGCOLOR="White" topmargin="10" leftmargin="10">
<!-- Display Header -->
<font size="4" face="Arial, Helvetica">
<b>Variable Sample</b></font><br>
<hr>
<H3> Integer Manipulation </h3>
<%
// Declare variable
// Assign the variable an integer value
intVariable = 5;
%>
<P><%= intVariable %> + <%= intVariable %> =
<%= intVariable + intVariable %></p>
<HR>
<H3> String Manipulation </h3>
<%
// Declare variable
// Assign the variable a string value
strVariable = "Jemearl";
%>
<P>This example was done by <%= strVariable + " Smith" %></p>
<HR>
<H3> Boolean Manipulation </h3>
<%
// Declare variable
// Assign the variable a boolean value
blnVariable = true;
// Output message based on value
if( blnVariable == true )
{
out.print( "<P>The boolean value is True.</P>" );
}
else
{
out.print( "<P>The boolean value is False.</P>" );
}
%>
</BODY>
</HTML>