Try it like this: if (Field("Procedure 2")!= "" && Field("Procedure 3") == "") return Field("Procedure 1") + "and" + Field("Procedure 2") if (Field("Procedure 2")!= "" && Field("Procedure 3") != "") return Field("Procedure 1") + "," + Field("Procedure 2") + "and" + Field("Procedure 3");
Doug Pershing VP-Data & Production WMSG Inc 1278 Titan Dr Dallas, TX 75247 (214) 640-2224 e-mail [EMAIL PROTECTED] web http://wmsginc.com click on information and news to see the latest at WMSG Inc. -----Original Message----- From: David Young [mailto:[EMAIL PROTECTED] Sent: Friday, June 01, 2007 4:49 PM To: FusionPro Users Forum Subject: [fusionpro] Whats causing the error Here's the Java I have written, forgive me I'm a real beginner with this stuff. if (Field("Procedure 2")!= "") and ;Field("Procedure 3") == "" return Field("Procedure 1") + "and" + Field("Procedure 2") if (Field("Procedure 2")!= "") and ;Field("Procedure 3") != "" return Field("Procedure 1") + "," + Field("Procedure 2") ;"and" ;Field("Procedure 3"); When I click on validate I get a message "ReferenceError: and is not defined." -- David L. Young Spectrum Printing LLC 4651 S Butterfield Dr Suite 161 Tucson, AZ 85714 Phone 520 571 1114 Fax 520 571 1395 -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- -- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --