I think you want

<cfscript>
if(form["qty#k#"] is "") newqty = 0;
else newqty = form["qty#k#"];
</cfsciprt>


========================================================================
===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
(www.mindseye.com)
Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

Email    : [EMAIL PROTECTED]
Blog     : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 21, 2003 1: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

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

Reply via email to