Variables
Back to ASP
Variables are used to hold values which you can display and manipulate.
The following example creates a variable called sum and then sets the variables value to 2 + 2 which of cause is 4
Then the result is displayed
<html>
<head><title>Variables</title></head>
<body>
<%
dim sum
sum = 2 + 2
response.write("2 + 2 = " & sum)
%>
</body>
</html>