Re: Combining IF field and SYMBOL field fails



Unfortunately, I think it has always been this way (from at least Word 97).
Nor can you do

{ SET X { SYMBOL 65 } }
{ IF 1 = 1 "{ SYMBOL 65 }" "" }

(even { REF X } does not do what you might hope, and the common workaround
of using { QUOTE }doesn't work either.

So...if it /has/ to be SYMBOL, I don't think there's a simple way forward.
You can put an IF inside the SYMBOL, so you can do, e.g. an individual
character or a space:

{ SYMBOL "{ IF 1 = 1 "65" "32" }" }

but that's about the closest you can get. What effect do you need to
achieve?

Peter Jamieson

"John in Saratoga" <John in Saratoga@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:ACEB4557-CE21-4DCF-898C-E0B006151F7E@xxxxxxxxxxxxxxxx
I need to insert text into a Word document conditionally, so I'm using the
IF
field. For the text itself I need to use the SYMBOL field (for reasons I
needn't describe). But I can't get IF and SYMBOL to work together.

The field code
{ NUMPAGES } returns number of pages and
{ SYMBOL 65 } returns the letter A, as they should. (Those of course are
real field braces.)

But, while
{ IF 2 > 1 { NUMPAGES } }
also returns the number of pages
{ IF 2 > 1 { SYMBOL 65 } }
returns nothing at all.

Huh?

Word 2003 on XP. Tried two different machines. Same result.

{ IF 2 > 1 { SYMBOL 65 } "false"} returns nothing also, so the conditional
is evaluating TRUE. It's as if SYMBOL just fails when inside an IF field.



.



Relevant Pages

  • Re: How much would it cost?
    ... >>>it or which machines one would use. ... >> their right mind would give you a quote, if they do this for a living. ... The first one will cost you about $10,000. ... >Gunner. ...
    (rec.crafts.metalworking)
  • FS/T- used EM and early SS plastic sets
    ... machines. ... email me and I will quote you a price. ... Aztec ... Grand Slam ...
    (rec.games.pinball)
  • Question re: braces and quotes
    ... I was reviewing the Suse/Gentoo run-crons script, ... have a good grasp on the concept of when to quote, enclose in a brace, etc. ... difference whether or not I used braces, quotes, or any combination. ... LOCKFILE is proper, and why? ...
    (comp.unix.shell)
  • Re: Is Web 2.0 the new black?
    ... web as artificial intelligence complementing human race ... web as people talking to people (through machines) ...
    (borland.public.delphi.non-technical)
  • Re: LSD
    ... </op quote> ... it is a dream of human beings to build machines that _don't_ behave ...
    (comp.databases.oracle.server)

Quantcast