For numeric values that may be null (or empty), I like to use VAL(). So for you expression, I would use:
<CFIF VAL(variables.choiceValue)> </CFIF> This would be true for only a positive number... > I have an if statement that I need to write, it is I am sure very simple, but for >some reason i cannot think straight on it. > > Basically if this variable is a 0 or a "" then I don't want to process some stuff >... how would I write this? > > This code below doesn't work .. it still lets "" or 0's through... > <cfif (variables.choiceValue neq "0") OR (Len(variables.choiceValue)> > > </cfif> > > What am I not thinking of?! > > Paul Giesenhagen > QuillDesign > > > ______________________________________________________________________ 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

