none
Multiple IF statement in mail merge doc RRS feed

  • Question

  • I have a document that is to be merged based on three conditions. I previously had only two conditions to be met:  { IF { = AND ( COMPARE { MERGEFIELD FIELD 361 } = "NY" }, { COMPARE { MERGEFIELD FIELD 37 } = "202" )  } = 1 { INCLUDE TEXT "DOC PATH"} }. Now I need to include an IF statement that will compare a field < >. How can I add this third compare statement? Thanks
    Monday, March 21, 2011 12:35 PM

Answers

  • After weeks of looking at this, I finally got it. I didn't need to use the COMPARE. Here is what I used: {IF{MERGEFIELD FIELD69} <> MG {IF{MERGEFIELD FIELD37}= 202 {IF{MERGEFIELD FIELD361}= NY {INCLUDETEXT "DOC PATH"}}}}


    PMS
    • Marked as answer by PMSS Wednesday, March 30, 2011 3:04 PM
    Wednesday, March 30, 2011 3:04 PM