A simple problem that I haven't solved. Trying to use IIF to process form fields. It should assign each one a numeric value depending on content or lack of content, then add the numbers and assign a variable the total value. However this results in error message that "" is not boolean. It's almost as if I'm getting "" instead of 0, then of course it can't generate a sum. Here's the code ... <CFSET FormFieldsTotal = IIF(FormFieldOne, 2, 0) + IIF(FormFieldTwo, 4, 0) + IIF(FormFieldThree, 6, 0) + IIF(FormFieldFour, 8, 0) > Keith Purtell, Web Designer VantageMed Corporation ______________________________________________________________________ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives........ http://www.mail-archive.com/[email protected] Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe.................... mailto:[EMAIL PROTECTED] To Unsubscribe................ mailto:[EMAIL PROTECTED]
