Example Conditional Statements
You can control your mail merge document output with conditional statements. These statements may be more or less elaborate as needed.
Check for 2nd Address Line - Use conditional statements to check for an address second line, and ensure that there will no be a blank line in the letter or on the envelope when there is no second line. The example below tests to see if the variable is “not equal to nothing,” in other words that it is not blank. This concept can be applied in other conditional statements.
Nested conditions - You can nest conditional statements within other conditional statements.
Condition stringing - If you are certain that no records will have a blank field for your variable, or if you desire the document to print nothing when it is blank, you can simply string conditional statements together rather than nesting them to make the form letter a little simpler to read.
│
│
│
Ortho2.com │1107 Buckeye Avenue │ Ames, Iowa 50010 │ Sales: (800) 678-4644 │ Support: (800) 346-4504 │ Contact Us
Chat with Software Support │Chat with Network Engineering │ Chat with New Customer Care
Remote Support │Email Support │ Online Help Ver. 12/18/2015