That works too ... and makes sense ... Thank you Paul Giesenhagen QuillDesign
> On Friday, July 26, 2002, at 09:34 , Paul Giesenhagen wrote: > > This code below doesn't work .. it still lets "" or 0's through... > > <cfif (variables.choiceValue neq "0") OR (Len(variables.choiceValue)> > > > > </cfif> > > That code executes if the value is not equal to "0" or the length is not > equal to 0. Plug "" in and it is not equal to "0" so it executes. Plus "0" > in and the length is not equal to 0 so it executes. > > You want > > <cfif (variables.choiceValue neq "0") and len(variables.choiceValue)> > ... > </cfif> > > You might find the condition easier to write as: > > <cfif (variables.choiceValue eq "0") or (len(variables.choiceValue) eq > 0)> > <!--- ignore it ---> > <cfelse> > ... > </cfif> > > A simple bit of boolean algebra: > > not (A or B) == (not A) and (not B) > > Sean A Corfield -- http://www.corfield.org/blog/ > > "If you're not annoying somebody, you're not really alive." > -- Margaret Atwood > > ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.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

