Reply
 
Thread Tools Display Modes
  #1   Report Post  
EHPorter
 
Posts: n/a
Default 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   Report Post  
Doug Robbins
 
Posts: n/a
Default

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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spainish marks such as tildes and accent marks J-Rod Microsoft Word Help 1 February 20th 05 11:30 PM
French (dagger) to English (curly) quotation marks Catherine Microsoft Word Help 5 February 14th 05 12:13 AM
emphasis marks - dot Peter Microsoft Word Help 5 January 20th 05 06:06 AM
eliminating tick marks and formatting selected text r frank Microsoft Word Help 1 December 16th 04 02:05 PM
How can I print the formatting marks (space marks, papagraph mark. AndrewA Microsoft Word Help 1 December 12th 04 09:54 PM


All times are GMT +1. The time now is 12:02 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"