Thread: IF-construct?
View Single Post
  #6   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default IF-construct?

Either

{ IF { ={ IF { mergefield PM_TEST_RESULT } = 80 1 0}*{ IF { mergefield
FALLSTUDIE_RESULT }= 80 1 0 } = 1 } "OK" "not passed" }

or
{ IF { ={ COMPARE { mergefield PM_TEST_RESULT } = 80 }*{ COMPARE {
mergefield FALLSTUDIE_RESULT }= 80 } = 1 } "OK" "not passed" }

All the {} need to be the special field code braces that you can insert
using ctrl-F9

Peter Jamieson


"Wolfgang Gary" wrote in message
...
thanks for your tipp, but its not working.

To check only one mergefield is working fine: {if {mergefield
PM_TEST_RESULT}="80" "OK" "not passed"}

But how to achieve logical ADD for two or more fields?
{if ({mergefield PM_TEST_RESULT}="80")*({mergefield
FALLSTUDIE_RESULT}="80") "OK" "not passed"} is not working.

Thanks for any tipp
best regards
Wolfgang