Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
Would appreciate proper syntax for the following "If Statement":
{IF {MERGEFIELD AlphaCode} = "A" or "B" or "C" or "D" or "E" "TRUE" "FALSE"} Thanks |
#2
![]() |
|||
|
|||
![]()
Hello there,
Try this: {IF {MERGEFIELD AlphaCode} = "A" "True" {IF {MERGEFIELD AlphaCode} = "B" "True" {IF {MERGEFIELD AlphaCode} = "C" "True" {IF {MERGEFIELD AlphaCode} = "D" "True" {IF {MERGEFIELD AlphaCode} = "E" "True" "False" }}}}} Hope this helps Judith -----Original Message----- Would appreciate proper syntax for the following "If Statement": {IF {MERGEFIELD AlphaCode} = "A" or "B" or "C" or "D" or "E" "TRUE" "FALSE"} Thanks . |
#3
![]() |
|||
|
|||
![]()
Unfortunately you can't do it that way round.
There are several ways you could try this, e.g. { IF { MERGEFIELD AlphaCode } = "A" "TRUE" "{ IF { MERGEFIELD Alphacode } = "B" "TRUE" "FALSE" }" } but extended to C, D and E, or { IF { ={ COMPARE { MERGEFIELD AlphaCode } = "A" }+{ COMPARE { MERGEFIELD AlphaCode } = "B" }+{ COMPARE { MERGEFIELD AlphaCode } = "C" } } 0 "TRUE" "FALSE" } also extended to D and E. Peter Jamieson "WordUser" wrote in message ... Would appreciate proper syntax for the following "If Statement": {IF {MERGEFIELD AlphaCode} = "A" or "B" or "C" or "D" or "E" "TRUE" "FALSE"} Thanks |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using Back Arrow when hyperlinking - multiple documents | Microsoft Word Help | |||
Multiple styles in a single paragraph | Microsoft Word Help | |||
IF Statement using multiple Expressions with Bolean | Mailmerge | |||
Multiple docs open multiple words | New Users | |||
Need multiple Ifs in Merge Fields | Mailmerge |