I diferentiate by looking at the id. For a new item, its blank or not defined so isnumeric(id) or isdefined("id") tells you whether your editing or adding the entry.
However, I am a bit confused as to your wording "can only get one portion of the template to show at a time?" Does that mean you want to show them both? DRE -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 8:53 AM To: CF-Talk Subject: RE: Cfif cfelse question is there any other variables distinguishing between a new and an edit? if not you should try passing a type variable that does. Anthony Petruzzi Webmaster 954-321-4703 [EMAIL PROTECTED] http://www.sheriff.org -----Original Message----- From: Ben Covington [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 10:40 AM To: CF-Talk Subject: Cfif cfelse question Hello All, I'm trying to develop a way to differentiate between a new record or the editing of a previous entered record using a single template. The user clicks on the link which passes the variable ID to the template for the cfif new and cfelse edit - but can only get one portion of the template to show at a time? I've also tried cfswitch and cfcase to no avail. What else should I try? Any assistance or direction will be greatly appreciated. Best regards, Ben ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists