In CF3.0, the use of pound signs was very ambiguous. So, everybody put pound signs around anything that wasn't a cf tag. I think MM left it in that way for backwards compatibility. That or they're lazy :) ----- Original Message ----- From: "Paris Lundis" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, January 22, 2003 10:32 PM Subject: RE: simple tag aint working
> The article is found: > http://www.defusion.com/articles/index.cfm?ArticleID=26 > > Somewhat logical... It's funny that the syntax is even permitted...I am > so sure I am no the only person writing code with the unneeded > pounds...Most people seem to be based on the code I see.. > > That has to be the #1 item of bad programming for CF... > > In MX has the pound purity been better defined??... We still run > CF5.0... > > Thanks for the info... Reminds me of one of those moments when you > realize you have been saying a word incorrectly for eons... > > > 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: Mosh Teitelbaum <[EMAIL PROTECTED]> > Date: Wed, 22 Jan 2003 23:58:53 -0500 > Subject: RE: simple tag aint working > > > Actually, the pound signs aren't needed since the functions (Hour() > > and > > Now()) are being used inside of a CF tag and are not enclosed by > > quotes. > > Using them won't mess anything up, but they're not needed so it's > > considered > > bad form to use them. > > > > -- > > Mosh Teitelbaum > > evoch, LLC > > Tel: (301) 625-9191 > > Fax: (301) 933-3651 > > Email: [EMAIL PROTECTED] > > WWW: http://www.evoch.com/ > > > > > > > -----Original Message----- > > > From: Paris Lundis [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, January 22, 2003 11: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 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4