I am using the following OnRecordStart script to set body pages but I keep getting the wrong page. Can we nest more than 2 conditions on a "or" argument? When a certain three different values are entered the rest of the pages should be ignored and use the "SpecialPage" but I keep getting the opposite result. Any different perspective on this would be appreciated.
if (Field("PostcardText") == "PNT") { if (Field("Place") == "Value1" || Field("Place") == "Value2" || Field("Place") == "Value3") { FusionPro.Composition.SetBodyPageUsage("PNT",false); FusionPro.Composition.SetBodyPageUsage("SNT",false); FusionPro.Composition.SetBodyPageUsage("LHT",false); FusionPro.Composition.SetBodyPageUsage("LLT",false); FusionPro.Composition.SetBodyPageUsage("GRD",false); FusionPro.Composition.SetBodyPageUsage("STMB",false); FusionPro.Composition.SetBodyPageUsage("SpecialPage",true); } if (Field("Place") != "Value1" || Field("Place") != "Value2" || Field("Place") != "Value3") { FusionPro.Composition.SetBodyPageUsage("PNT",true); FusionPro.Composition.SetBodyPageUsage("SNT",false); FusionPro.Composition.SetBodyPageUsage("LHT",false); FusionPro.Composition.SetBodyPageUsage("LLT",false); FusionPro.Composition.SetBodyPageUsage("GRD",false); FusionPro.Composition.SetBodyPageUsage("STMB",false); FusionPro.Composition.SetBodyPageUsage("SpecialPage",false); } } if (Field("PostcardText") == "SNT") { if (Field("Place") == "Value1" || Field("Place") == "Value2" || Field("Place") == "Value3") { FusionPro.Composition.SetBodyPageUsage("PNT",false); FusionPro.Composition.SetBodyPageUsage("SNT",false); FusionPro.Composition.SetBodyPageUsage("LHT",false); FusionPro.Composition.SetBodyPageUsage("LLT",false); FusionPro.Composition.SetBodyPageUsage("GRD",false); FusionPro.Composition.SetBodyPageUsage("STMB",false); FusionPro.Composition.SetBodyPageUsage("SpecialPage",true); } if (Field("Place") != "Value1" || Field("Place") != "Value2" || Field("Place") != "Value3") { FusionPro.Composition.SetBodyPageUsage("PNT",false); FusionPro.Composition.SetBodyPageUsage("SNT",true); FusionPro.Composition.SetBodyPageUsage("LHT",false); FusionPro.Composition.SetBodyPageUsage("LLT",false); FusionPro.Composition.SetBodyPageUsage("GRD",false); FusionPro.Composition.SetBodyPageUsage("STMB",false); FusionPro.Composition.SetBodyPageUsage("SpecialPage",false); } } if (Field("PostcardText") == "GF") { if (Field("Place") == "Value1" || Field("Place") == "Value2" || Field("Place") == "Value3") { FusionPro.Composition.SetBodyPageUsage("PNT",false); FusionPro.Composition.SetBodyPageUsage("SNT",false); FusionPro.Composition.SetBodyPageUsage("LHT",false); FusionPro.Composition.SetBodyPageUsage("LLT",false); FusionPro.Composition.SetBodyPageUsage("GRD",false); FusionPro.Composition.SetBodyPageUsage("STMB",false); FusionPro.Composition.SetBodyPageUsage("SpecialPage",true); } if (Field("Place") != "Value1" || Field("Place") != "Value2" || Field("Place") != "Value3") { FusionPro.Composition.SetBodyPageUsage("GRD",true); FusionPro.Composition.SetBodyPageUsage("LHT",false); FusionPro.Composition.SetBodyPageUsage("LLT",false); FusionPro.Composition.SetBodyPageUsage("PNT",false); FusionPro.Composition.SetBodyPageUsage("SNT",false); FusionPro.Composition.SetBodyPageUsage("STMB",false); FusionPro.Composition.SetBodyPageUsage("SpecialPage",false); } } if (Field("PostcardText") == "STM") { if (Field("Place") == "Value1" || Field("Place") == "Value2" || Field("Place") == "Value3") { FusionPro.Composition.SetBodyPageUsage("PNT",false); FusionPro.Composition.SetBodyPageUsage("SNT",false); FusionPro.Composition.SetBodyPageUsage("LHT",false); FusionPro.Composition.SetBodyPageUsage("LLT",false); FusionPro.Composition.SetBodyPageUsage("GRD",false); FusionPro.Composition.SetBodyPageUsage("STMB",false); FusionPro.Composition.SetBodyPageUsage("SpecialPage",true); } if (Field("Place") != "Value1" || Field("Place") != "Value2" || Field("Place") != "Value3") { FusionPro.Composition.SetBodyPageUsage("STMB",true); FusionPro.Composition.SetBodyPageUsage("GRD",false); FusionPro.Composition.SetBodyPageUsage("LHT",false); FusionPro.Composition.SetBodyPageUsage("LLT",false); FusionPro.Composition.SetBodyPageUsage("PNT",false); FusionPro.Composition.SetBodyPageUsage("SNT",false); FusionPro.Composition.SetBodyPageUsage("SpecialPage",false); } } if (Field("PostcardText") == "Legend") { if (Field("Tier") == "High") { if(Field("Place") != "Value1" || Field("Tier") != "Value2" || Field("Tier") != "Value3") { FusionPro.Composition.SetBodyPageUsage("LHT",true); FusionPro.Composition.SetBodyPageUsage("LLT",false); FusionPro.Composition.SetBodyPageUsage("PNT",false); FusionPro.Composition.SetBodyPageUsage("SNT",false); FusionPro.Composition.SetBodyPageUsage("GRD",false); FusionPro.Composition.SetBodyPageUsage("STMB",false); FusionPro.Composition.SetBodyPageUsage("SpecialPage",false); } } if (Field("Tier") == "High") { if(Field("Place") == "Value1" || Field("Tier") == "Value2" || Field("Tier") == "Value3") { FusionPro.Composition.SetBodyPageUsage("PNT",false); FusionPro.Composition.SetBodyPageUsage("LHT",false); FusionPro.Composition.SetBodyPageUsage("LLT",false); FusionPro.Composition.SetBodyPageUsage("GRD",false); FusionPro.Composition.SetBodyPageUsage("STMB",false); FusionPro.Composition.SetBodyPageUsage("SpecialPage",true); } } if (Field("Tier") == "Low") { if(Field("Place") != "Value1" || Field("Place") != "Value2" || Field("Place") != "Value3") { FusionPro.Composition.SetBodyPageUsage("LHT",false); FusionPro.Composition.SetBodyPageUsage("LLT",true); FusionPro.Composition.SetBodyPageUsage("PNT",false); FusionPro.Composition.SetBodyPageUsage("SNT",false); FusionPro.Composition.SetBodyPageUsage("GRD",false); FusionPro.Composition.SetBodyPageUsage("STMB",false); FusionPro.Composition.SetBodyPageUsage("SpecialPage",false); } } if (Field("Tier") == "Low") { if(Field("Place") == "Value1" || Field("Place") == "Value2" || Field("Place") == "Value3") { FusionPro.Composition.SetBodyPageUsage("PNT",false); FusionPro.Composition.SetBodyPageUsage("LHT",false); FusionPro.Composition.SetBodyPageUsage("LLT",false); FusionPro.Composition.SetBodyPageUsage("GRD",false); FusionPro.Composition.SetBodyPageUsage("STMB",false); FusionPro.Composition.SetBodyPageUsage("SpecialPage",true); } } } +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users! Do you have a question or lots of knowledge to share about FusionPro Web? If so, join our Printable Web to Print Users' Forum today! Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- 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 --