Jim,

I suspect that you may misunderstand the IsDefined( ) function.  That 
function checks for the existence of a variable.  It sound

At 02:58 PM 7/15/00 -0700, you wrote:
>The following still allows the CFSET tag to run even though the IsDefined
>variables are empty and hence an error.  This is from a simple mail form
>asking for Quantity (qty1) and price (uc1) and then calculating a total
>price (tc1).  If Quantity and Price are not filled in I want it to go to
>next field.  Please make suggestions on getting this to work.  I have got to
>get it working by Monday morning.
>
><CFIF IsDefined("form.qty1") AND IsDefined("form.uc1")><cfset tc1 =
>#form.qty1# * #form.uc1#></CFIF>
>
><CFOUTPUT>
>#form.tc1#
></CFOUTPUT>
>
>Jim Watkins
>
>------------------------------------------------------------------------------
>To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_communit 
>y or send a message to [EMAIL PROTECTED] with 
>'unsubscribe' in the body.

------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_community or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to