Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Open up the "field" dialog box by clicking on the "insert" tab, then clicking "quick parts", and finally mousing down to and clicking on "field".
Within the dialog box, scroll down to and click on "If". You should now see a heading entitled "advanced field properties" on the right-hand side of the dialog box, with a space for field codes.
Noting the syntax for the field "IF Expression1 Operator Expression2 TrueText FalseText", click OK, and insert the field into the document.
Initialize For example, initialize a variable named "EN.FlocHoriz", which will be used to determine whether to display information about horizontal or vertical flocculators.
Establish the condition: Say that if "EN.FlocHoriz" is equal to a certain value, display the text pertaining to the vertical flocculator and that if "EN.FlocHoriz" is equal to any other value, display the text pertaining to the horizontal flocculator (fields do not support the "if-elseif" framework).
This is done by writing: IF EN.FlocHoriz=X "Vertical Flocculator: descriptive text" "Horizontal Flocculator: Descriptive text"