Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Construct a string as "IF" condition result

Status
Not open for further replies.

phessup

Programmer
May 8, 2002
15
US
I'm trying to do a simple string build based on the results of a conditional test on a custom property field in a WORD template. I'm not using VBA for this; I'm dropping in both the conditional structure and the custom property field name via the INSERT>FIELD>... process. When I run the template and want to produce the false result for the example shown below, WORD ignores the plus sign and the " percent". I've tried "+", "-", "&", "_", "&&", and "++" so far.

{IF {DOCPROPERTY&quot;Negative_Tolerance&quot; } < &quot; &quot; &quot;None&quot; DOCPROPERTY&quot;Negative_Tolerance&quot;} + &quot; percent&quot;}

Example 1 tolerance is empty, print &quot;None&quot;
Example 2 tolerance is 3, print &quot;3 percent&quot;

Thanks for any suggestions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top