[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 290
  • Last Modified:

COMPARE STATEMENT - WORD Mergedfields

Simply put, why doesn't this produce a "bob". All I can manage is a "{"


{ IF { = AND ( { COMPARE "A" = "A" }, { COMPARE "B" = "B" } ) } = 1 "bob" "bob1" }
0
dlangman
Asked:
dlangman
  • 3
  • 2
  • 2
2 Solutions
 
GrahamSkanCommented:
I think it must be a bug. I get the same in Word 2000. I can test it in Word 2003 on Monday, unless that is the version that you are using anyway. Are you?
0
 
dlangmanAuthor Commented:
I am using office 2003.
0
 
Ken TurnerCommented:
The expression works fine for me exactly as presented, and returns "bob".

I am using Word 2003 (11.8106.8107) SP2

How did you build it?  I simply did Ctrl-F9 to create { }'s where needed, and then typed/copied/pasted the other bits into them.

0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
GrahamSkanCommented:
Hi Ken, how are you doing?

Thanks for that prompt - I just tried it in 2003 and it works for me too.

So I tried it again on my (Word 2000) laptop system, and would you know, I can't make it go wrong again. Unfortunately I didn't save my previous efforts.

So dlangman, try typing the whole thing in again - it might just work. If it does, give Ken the points. His intervention will have saved the day.
0
 
Ken TurnerCommented:
Graham, I'm fine - good to hear from you.

Your suggestion re the points is very generous, thanks.

Happy Christmas to all our readers!
0
 
dlangmanAuthor Commented:
I just updated my office to the version KenTurner mentioned, typed it from scratch again and when I complete the merge I am returning this error message: Error! Unknown op code for conditional.
0
 
GrahamSkanCommented:
I go that just now, but I had typed (leaving no space between the = and the 1):

} =1 "bob"


instead of

} = 1 "bob"
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now