Conditional field in MS Word

2

I want to insert a field in the footer that will display the text "hello" if the page number is lesser than or equal to 2, and "bye" otherwise. How to do it?

I have tried IF {PAGE}<=2 "hello" "bye" but it doesn't work.

Karan Karan

Posted 2017-07-05T10:19:25.180

Reputation: 160

Answers

2

To do this, copy the code you already have

Then within the footer press CTRL + F9. This will insert the outer {} . This is different compared to you typing them!

You should see 2 braces. Now paste the content between them.

{ if { PAGE } <= 2 "Hello" "Bye" }

ALT + F9 will toggle conditional formatting (code)

With conditional formatting shown you can see the code (screen shot):

enter image description here

Dave

Posted 2017-07-05T10:19:25.180

Reputation: 24 199