Peter,
Why do you suggest using the StructKeyExists? Do you see a problem in doing it this? <cfif form.name NEQ "" AND form.requestname NEQ ""> <cfoutput><strong>#form.requestname#</strong></cfoutput> <cfelse> <cfoutput>#form.name#</cfoutput> </cfif> Steve LaBadie, Web Manager East Stroudsburg University 200 Prospect St. East Stroudsburg, Pa 18301 570-422-3999 http://www.esu.edu slaba...@po-box.esu.edu -----Original Message----- From: Peter Boughton [mailto:bought...@gmail.com] Sent: Wednesday, June 03, 2009 2:00 PM To: cf-talk Subject: Re: CFIF Not Working As Expected Try this: <cfif StructKeyExists(Form,'Name') AND Len(trim(Form.Name))> <cfoutput><p>You have requested CMS access for </cfoutput> <cfif StructKeyExists(Form,'RequestName') AND Len(trim(Form.RequestName))> <cfoutput><strong>#Form.Name#</strong> and <strong>#Form.RequestName#</strong>.</p></cfoutput> <cfelse> <cfoutput><strong>#Form.Name#</strong>.</p></cfoutput> </cfif> <cfelse> <!--- TODO: No name selected (validation error?) ---> </cfif> Hopefully all self-explanatory, but feel free to ask if any questions. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323125 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4