SESSION HANDOUT
Applied Epic/Microsoft® Word® – IF, ASK, Math, SET, Bookmarks, INCLUDETEXT
Let's analyze that statement:
First, we test the make to see if it is GMC. If it is, the true section kicks in, GMC is
entered in the document, and the IF statement is finished. If it isn’t GMC, the false
section is a test for BMW. Again, if true it concludes. Otherwise it tests for VW. If it isn’t
VW, the false section of that IF statement instructs Word to insert the contents of the
filed, in upper/lower case.
To create the above nested IF statement:
1. Create the first IF statement, testing for GMC. Put GMC in the “true” section and
leave the “false” section blank.
2. Click Insert to close the IF statement dialog box and put the basic IF statement in
the document.
3. If necessary press Alt+F9 to reveal the entire coding of the IF statement.
4. Place your cursor in the false section of the IF statement (between the two
double quote marks).
5. Click Applied, IF Statement.
6. Create the second “nested” IF statement, testing for BMW.
7. Repeat steps 2-6, putting your cursor in the false section of the BMW IF
statement before creating the IF statement that tests for VW.
8. Put your cursor in the false section of the VW IF statement. This time you are not
going to insert an IF statement, you are inserting the datafield name, and then
applying the formatting switch to it to force it into upper/lower case.
Once you are comfortable with editing IF statements in the document, you can take the
next step and insert them directly into the document instead of using the Applied/Word
interface dialog box.
• At the place in the document where you want the IF statement, press Ctrl-F9.
This inserts an empty Word field, which looks like this:
They look like open and closing curly brackets but you
cannot use those keyboard characters to enter them –
you must use Ctrl-F9.
• You can now type, directly from your keyboard, the contents of the Word field
inside those brackets. Use the Applied Data dialog box to enter fields (or copy
and paste them from elsewhere in your document if you’ve already got them
somewhere).
• Since this is an empty Word field, it hasn’t yet been defined as an IF statement.
So, the first thing you’ll type is the word “IF”: { IF }.
Applied Epic/Microsoft® Word® – IF, ASK, Math, SET, Bookmarks, INCLUDETEXT // PAGE 8
APPLIED NET CLIENT NETWORK CONFERENCE | www.appliednet.com