The problem is in your CFELSEIF expressions. You can't have an expression
along the lines of:
expression (meets condition 1) AND (meets condition 2)
It has to be:
(expression meets condition 1) AND (expression meets condition 2)
So your code should be rewritten as:
:)
- Original Message -
From: Matthew Walker [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, January 22, 2003 11:18 PM
Subject: RE: simple tag aint working
Well, the closing comment needs an extra - at the end. BTW you could
write it slightly more briefly
Well, the closing comment needs an extra - at the end. BTW you could
write it slightly more briefly:
!--- welcome time of day greeting ---
cfif Hour(Now()) LT 12
Good morning early bird
cfelseif Hour(Now()) LT 17
Good Afternoon
cfelse
Good Evening
/cfif
!--- end time of day greeting ---
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
hiding??? who me haha
i thought about the #'s but works without them
but thanks!
- Original Message -
From: Paris Lundis [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, January 22, 2003 11:22 PM
Subject: Re: simple tag aint working
Dave,
Password.. what ya
: Wednesday, January 22, 2003 11:21 PM
Subject: RE: simple tag aint working
The problem is in your CFELSEIF expressions. You can't have an expression
along the lines of:
expression (meets condition 1) AND (meets condition 2)
It has to be:
(expression meets condition 1) AND (expression meets
()
// --
/SCRIPT
--
Clint Tredway
www.factorxsoftware.com
--
-Original Message-
From: Matthew Walker [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 10:19 PM
To: CF-Talk
Subject: RE: simple tag aint working
Well, the closing comment needs an extra - at the end. BTW you could
write
]
-Original Message-
From: Dave Lyons [EMAIL PROTECTED]
Date: Wed, 22 Jan 2003 23:28:48 -0500
Subject: Re: simple tag aint working
hiding??? who me haha
i thought about the #'s but works without them
but thanks!
- Original Message -
From: Paris Lundis [EMAIL PROTECTED]
To: CF-Talk
: (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
: RE: simple tag aint working
You may want to use a java script to get the local time off of the PC. I
got the script below from Clint Tredway off of anotherlist and haven't
tested it yet.
SCRIPT
// This script is designed to replace the 0 that you get using
// the getHours(). Nothing
- Original Message -
From: Paris Lundis [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, January 22, 2003 9:22 PM
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
, 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
None of those pound signs are required.
- Original Message -
From: Paris Lundis [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, January 22, 2003 9:22 PM
Subject: Re: simple tag aint working
Dave,
Password.. what ya handing out...
Here's your code corrected:
cfif
://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
I still appreciate the help:)
- Original Message -
From: Paris Lundis [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, January 23, 2003 12:32 AM
Subject: RE: simple tag aint working
The article is found:
http://www.defusion.com/articles/index.cfm?ArticleID=26
- 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
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
people, places and things]
-Original Message-
From: Kwang Suh [EMAIL PROTECTED]
Date: Wed, 22 Jan 2003 23:43:30 -0700
Subject: Re: simple tag aint working
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
18 matches
Mail list logo