Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Embedding quote marks in If-Else-Then statements
Is it possible to embed quote marks in If-Else-Then statements? Some sort
of switch or character that tells the merge to treat the quote mark ( " ) as part of the text, rather than as part of the If command. An example. The line: {IF {Mergefield "Nicknames"} "" "The nickname is "Crash" Johnson" "There is no nickname"} does not work, because the quotes around the word Crash are treated as control characters in the If statement. Is there any way around this? Thanks |
#2
|
|||
|
|||
Use the following construction:
{IF {Mergefield "Nicknames"} "" { Quote "The nickname is '"'Crash'"' Johnson" } "There is no nickname"} where the quote marks either side of Crash are enclosed by apostrophes. That is apostrophe double quote apostrophe Crash apostrophe double quote apostrophe -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "EHPorter" wrote in message ... Is it possible to embed quote marks in If-Else-Then statements? Some sort of switch or character that tells the merge to treat the quote mark ( " ) as part of the text, rather than as part of the If command. An example. The line: {IF {Mergefield "Nicknames"} "" "The nickname is "Crash" Johnson" "There is no nickname"} does not work, because the quotes around the word Crash are treated as control characters in the If statement. Is there any way around this? Thanks |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Spainish marks such as tildes and accent marks | Microsoft Word Help | |||
French (dagger) to English (curly) quotation marks | Microsoft Word Help | |||
emphasis marks - dot | Microsoft Word Help | |||
eliminating tick marks and formatting selected text | Microsoft Word Help | |||
How can I print the formatting marks (space marks, papagraph mark. | Microsoft Word Help |