View Single Post
 
Old 01-14-2021, 01:36 PM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by IanT View Post
IF "condition" = "A" then "Correct" else "First Letter was " {MERGEFIELD FirstLetter}

E.g.
{ IF { MERGEFIELD FirstLetter } = "A" "Correct" "First Letter was " { MERFGEFIELD FirstLetter } }


FirstLetter = A you get "Correct"
FirstLetter = B you get "First Letter was B"

Is this possible or do I need multiple IF's?
Yes. Depending on what you're trying to achieve, the IF tests can be sequential or nested.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote