Actually, he doesn't need and shouldn't use pound signs here.

--
Josh Trefethen

.:::::[ Exciteworks, Inc ]::[ http://exciteworks.com ]:::::. 
.::[ cf hosting on linux ]::[ consulting ]::[ expertise ]::.
 

-----Original Message-----
From: Paris Lundis [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 22, 2003 8:22 PM
To: CF-Talk
Subject: Re: simple tag aint working


Dave,

Password.. what ya handing out...

Here's your code corrected:

<cfif #Hour(Now())# LT 12>
 Good morning early bird
 <cfelseif #Hour(Now())# GTE 12 AND #Hour(Now())# LT 17>
 Good Afternoon
 <cfelseif #Hour(Now())# GTE 17 AND #Hour(Now())# LTE 24>
 Good Evening
 </cfif>

The AND condition requires the comparison value Hour(NOW()) be 
available on the second part as well...

You also left the pounds off of things.

-paris


Paris Lundis
Founder
Areaindex, L.L.C.
http://www.areaindex.com
http://www.pubcrawler.com
412-292-3135
[finding the future in the past, passing the future in the present]
[connecting people, places and things]


-----Original Message-----
From: "Dave Lyons" <[EMAIL PROTECTED]>
Date: Wed, 22 Jan 2003 23:07:15 -0500
Subject: simple tag aint working

> finally getting around to playing with cf
> i am trying to make a simple time of day greeting
> but i am getting an error for a closing </cfif> tag but I cant put it 
> where it says to and when i do It still errors I'll get you a password

> tony if you show me the light, lol
> 
> <!--- welcome time of day greeting --->
> <cfif Hour(Now()) LT 12>
>   Good morning early bird
>   <cfelseif Hour(Now()) GTE 12 AND LT 17>
>   Good Afternoon
>   <cfelseif Hour(Now()) GTE 17 AND LTE 24>
>   Good Evening
>   </cfif>
> <!--- end time of day greeting -->
> 
> 
> Dave Lyons
> [EMAIL PROTECTED]
> www.DreamLofts.com
> www.DreamLofts-WebDesigns.com
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to