Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
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 |
#3
![]() |
|||
|
|||
![]()
I've encountered this issue before with embedding quotes in If-Else-Then statements. It can be frustrating when the quotes meant for text are interpreted as part of the conditional logic. The good news is there's a way to tell the merge process to treat the quote marks as text. We can use an escape character to signal that the following best dissertation writing services quote is part of the string, not the code. This ensures the quote becomes part of the output when the desired condition is met.
|
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
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 |