Thanks Clint, the Trim function and Switch Case fixed it, the weird thing is that this is supposed to be a single character field in the DB, such are our lives sometimes.
Mike Brunt Sempra Energy 213.244.5226 "Artificial Intelligence usually beats natural stupidity." -----Original Message----- From: Clint Tredway [mailto:[EMAIL PROTECTED]] Sent: Monday, November 19, 2001 9:42 AM To: CF-Talk Subject: Re: CFIF-Session Variable mystery. Try putting a Trim() around your variable... also you may change this to a <cfswitch because a switch is faster than a bunch of ifs and it reads better. One other plus is that you can put a cfdefaultcase(like a cfelse) to catch a variable not getting set inside the switch. My 2 cents... Clint ---------- Original Message ---------------------------------- from: "Brunt, Michael" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] date: Mon, 19 Nov 2001 09:32:27 -0800 I have a frustrating situation with the fillowing code. I am using a Session variable that definitely exists to display alternate links in a header section. I have done a CFDUMP directly before the first CFIF statement and the Sesiion variable I am looking for exists and displays yet the CFIF block cannot see it. Can anyone give me any insight into what might be going on? <cfif Session.JobType IS "N"> <td align="center"><a href="index.cfm?fuseaction=<cfoutput>#attributes.xfa.plahome#</cfoutput>">Pl anned Appliance Information</a></td> </cfif> <cfif Session.JobType IS "R"> <td align="center"><a href="index.cfm?fuseaction=<cfoutput>#attributes.xfa.plahomeres#</cfoutput>" >Planned Appliance Information</a></td> </cfif> <cfif Session.JobType IS "B"> <td align="center"><a href="index.cfm?fuseaction=<cfoutput>#attributes.xfa.plahomeres#</cfoutput>" >Planned Appliance Information</a></td> </cfif> Also tried this <cfif Session.JobType IS "N"> <td align="center"><a href="index.cfm?fuseaction=<cfoutput>#attributes.xfa.plahome#</cfoutput>">Pl anned Appliance Information</a></td> <cfelseif Session.JobType IS "R"> <td align="center"><a href="index.cfm?fuseaction=<cfoutput>#attributes.xfa.plahomeres#</cfoutput>" >Planned Appliance Information</a></td> <cfelseif Session.JobType IS "B"> <td align="center"><a href="index.cfm?fuseaction=<cfoutput>#attributes.xfa.plahomeres#</cfoutput>" >Planned Appliance Information</a></td> </cfif> The variable is a single alpha character. Mike Brunt Sempra Energy 213.244.5226 "Artificial Intelligence usually beats natural stupidity." ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

