I believe it is: <cfscript> if(form["qty#k#"] IS "") newqty = 0; else newqty = form["qty#k#"]; </cfscript>
Try to avoid the evaluate if possible. Steve -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 3:51 PM To: CF-Talk Subject: Quick cfscript if else ? Not done much if something is this, then set this value... How far off am I? Not seeing a good tutorial directly related to this... (ignore //) ...in essence looking for a blank value and resetting to 0 or else use the numeric value passed... //if form["qty#k#] = '' //newqty = 0 //else //newqty = evaluate("qty#k#") //endif Thanks a mill in advance!! Regards, Eric J. Hoffman Technology Tamer DataStream Connexion www.datastreamconnexion.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm