View Single Post
 
Old 01-28-2014, 04:12 PM
ChrisBrewster ChrisBrewster is offline Windows 7 64bit Office 2010 64bit
Advanced Beginner
 
Join Date: Jan 2014
Posts: 36
ChrisBrewster is on a distinguished road
Default Use document property as condition in IF field?

I need to use IF fields that can toggle values between two values of the "Company" document property. I tried to do it using Quick Parts > Field > IF, and coded it to look like an example that used MERGEFIELD; I put DOCPROPERTY in the same position. It didn't work, but here's how it looks when I show the field coding:

{IF {DOCPROPERTY Company} = "Acme" "Star" "Meteor" \*MERGEFORMAT}

The function should result in the brand "Star" if the company is Acme. If not, the brand is "Meteor". The result is currently:

Company}

Can someone explain how to use a docproperty in the IF field?
Reply With Quote