Inserting text based on the first character of a field

H

Habitat Calgary

Can I ask If...Then...Else to insert the word Dear before any preferred
salutation that starts with 'M'?
 
P

Peter Jamieson

Try

{ IF "{ MERGEFIELD myfield \*Upper }" = "M*" "Dear " "" }{ MERGEFIELD
myfield }

(You can use various types of field instead of { MERGEFIELD myfield }
depending on what you need). All the {} need to be the special field code
braces that you can insert using ctrl-F9.
 

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