<!---
Name:        if4.cfm
Author:      Ben Forta (ben@forta.com)
Description: Demonstrate use of <CFIF> and <CFELSE>
Created:     3/27/01
--->

<HTML>
<HEAD>
   <TITLE>If 4</TITLE>
</HEAD>

<BODY>

<!--- Is it the weekend? --->
<CFSET weekend=(DayOfWeek(Now()) IS 1) OR (DayOfWeek(Now()) IS 7)>

<!--- Let the user know --->
<CFIF weekend>
   <!--- Yes it is, great! --->
   It is the weekend, yeah!
<CFELSE>
   <!--- No it is not :-( --->
   No, it's not the weekend yet, sorry!	
</CFIF>

</BODY>
</HTML>

