I wouldn't agree with you and you definition of IsDefined, IsDefined checks to see if a variable is there, if it is True, if it isn't False.
In your dictionary example; use isdefined to see if the word is in the dictionary and then if it IS there, view the definition if it ISN'T, send them to Websters website to ask that it be added :) Paul Giesenhagen QuillDesign http://www.quilldesign.com SiteDirector v2.0 - Commerce Builder > ISDifined / ParameterExists > > ParameterExists meens you do not know if it will be there or not. > > ISDifined meens you know it is there but is it difined. > > Think of a dictionary then remove the definitions but leave the words. You > know they are words but you don't know what they are or what to do with > them. > > > Example; > > IN your FORM > Run a query to list all the possible values as checkbox's Notice the removal > of the dash's. > > <input type="checkbox" > name="Values#Replace(QryGetValues.ValuesGUID,'-','','all')#" value="1"> > > ON the Action page run the same query and loop through it. > <cfloop query="QryValuesJobs"> > <cfif > IsDefined("form.Values#Replace(QryGetValues.ValuesGUID,'-','','all')#")> > <cfquery datasource="SQL" name="QryValuesBatch"> > INSERT INTO A_Table > (NewGUID, ValuesGUID) > VALUES (NewID(),'#QryGetValues.ValuesGUID#') > </cfquery> > </cfif> > </cfloop> > > > > Rick > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 24, 2002 11:52 AM > To: CF-Talk > Subject: parameterexists > > > Can anyone explain what the major benefits are for using IsDefined rather > than ParameterExists? > > For example > > <cfif Not IsDefined("url.pid)> > > as compared to > > <CFIF #Parameterexists(url.pid)# is "NO"> > > > > ______________________________________________________________________ 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/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

