RE: Quick cfscript if else ?

2003-08-21 Thread Raymond Camden
I think you want if(form["qty#k#"] is "") newqty = 0; else newqty = form["qty#k#"]; === Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/t

RE: Quick cfscript if else ?

2003-08-21 Thread DURETTE, STEVEN J (AIT)
I believe it is: if(form["qty#k#"] IS "") newqty = 0; else newqty = form["qty#k#"]; Try to avoid the evaluate if possible. Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 3:51 P

RE: Quick cfscript if else ?

2003-08-21 Thread Ben Doom
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 &