IF-construct?

W

Wolfgang Gary

I want to make following IF-Statement:

IF (PMTest_Ergebnis>=71 AND PMTest_Ergebnis<75 AND FallBsp_Ergebnis>=80)
THEN "OK" ELSE "Not passed"

I havnt found a solution with {if ..} Statements which will work.

thanks for your support & any tipp

best regards
Wolfgang
 
W

Wolfgang Gary

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
 
M

macropod

Hi Wolfgang,

Try:
{IF{if {mergefield PM_TEST_RESULT}>= 80 1 0}*{IF{mergefield FALLSTUDIE_RESULT}>= 80 1 0}= 1 "OK" "not passed"} }

Cheers
 
G

Graham Mayor

Your syntax is wrong - see Macropod's reply and notice especially the shape
of the brackets. The curly {}field boundary brackets are all inserted with
CTRL+F9.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
P

Peter Jamieson

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
 
W

Wolfgang Gary

I have found a working solution:

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

Please note the quote in the IF expressions.

thanks for your tipps
Wolfgang
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top