Determine if the total # of pages is ODD or EVEN

G

Guest

Is it possible to use field codes to determine if the
document has an odd or even number of pages?

I have a couple of long-winded reasons for asking - but
this is essentially what I need to know, if anyone has any
thoughts. I just can't figure it out.

Thanks.
 
J

Jay Freedman

Is it possible to use field codes to determine if the
document has an odd or even number of pages?

I have a couple of long-winded reasons for asking - but
this is essentially what I need to know, if anyone has any
thoughts. I just can't figure it out.

Thanks.

You can do it with a triply-nested field -- where each pair of matched
braces is entered by pressing Ctrl+F9:

{ IF { = MOD({ NUMPAGES },2) } = 1 "odd" "even" }
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top