if (form["qty#k#"] = '')
{
        newqty = 0;
}
else
{
        newqty = form["qty#k#"];
}

The brackets are, actually, optional in this case, but I always always
always use them.  That way, if I need to add more lines to the clause, I
don't fortet to add them.  :-)


--  Ben Doom
    Programmer & General Lackey
    Moonbow Software, Inc

: -----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

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