View Single Post
  #10   Report Post  
Greg Maxey
 
Posts: n/a
Default

smcash,

The problem with that approach is that it breaks down with the 3rd county



{ IF { = OR ({ Compare "{ County }" = "Hillsborough" }, { Compare "{
County }" = "Pinellas" }, { Compare "{ County }" = "Lake" })} = 1 "Test
Sat""Test Fail" } will generate "Test Fail"




The OR only handles two conditions and you have to keep nesting them which I
find very even more confusing to keeping track of the structure than using
the nested IF field:



{ IF { = OR ({ Compare "{ County }" = "Pinellas" }, OR ({ Compare "{
County }" = "Hillsborough" }, OR ({ Compare "{ County }" = "Lake" }, OR
({ Compare "{ County }" = "Orange" }, OR ({ Compare "{ County }" =
"Brevard" }, OR ({ Compare "{ County }" = "Indian River" }, { Compare "{
County }" = "Volusia" }))))))} = 1 "Test Sat""Test Fail" }



--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.

smcash wrote:
Oops, I mistyped OR. Where I wrote OF, it is obviously supposed to be
OR.