The CFIF #CMFileName# & "" IS NOT ""> is actually...well, probably what you said. Works the same.
Believe it or not, after monkeying back and forth (this is like month #3 with CF, btw), I honestly thought I'd tried the #RIGHT...# and it had failed me. Apparently, I was wrong, you were right and I'm grateful for such a quick response. Gracias! > -----Original Message----- > From: David Notik [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 18, 2002 10:13 PM > To: CF-Talk > Subject: RE: Using a CFIF on RIGHT(#value#, 3) > > > Well, first off, what's this line: > > <CFIF #CMFileName# & "" IS NOT ""> > > Do you mean... > > <cfif #Trim(CMFileName)# gt 0> > > ..which essentially checks to make sure CMFileName has > something greater than a zero-length? > > > Secondly: > > <CFSWITCH EXPRESSION="RIGHT(#CMFileName#,3)"> > > Do you mean to have the expression be... > > #Right(CMFileName, 3)# > > ..? > > Those are the first things that strike my eye. > > --D > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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.

