<!---
Name:        guess1.cfm
Author:      Ben Forta (ben@forta.com)
Description: Demonstrate use of multiple if statements
Created:     3/27/01
--->

<HTML>
<HEAD>
   <TITLE>Guess the Number - 1</TITLE>
</HEAD>

<BODY>

<!--- Pick a random number --->
<CFSET RandomNumber=RandRange(1, 10)>

<!--- Check if matched --->
<CFIF RandomNumber IS URL.guess>
   <!--- It matched --->
   <CFOUTPUT>
   You got it, I picked #RandomNumber#! Good job!
   </CFOUTPUT>
<CFELSE>
   <!--- No match --->
   <CFOUTPUT>
   Sorry, I picked #RandomNumber#! Try again!
   </CFOUTPUT>
</CFIF>

</BODY>
</HTML>

