Thread: [Solved] Need help with Field Codes
View Single Post
 
Old 07-23-2015, 12:32 PM
Cosmo Cosmo is offline Windows Vista Office 2007
Competent Performer
 
Join Date: Mar 2012
Posts: 240
Cosmo is on a distinguished road
Default Need help with Field Codes

I need to create a field which changes based on the location of a bookmark ('CONT' in this example). If the bookmark falls on the next page, it should say 'the following page', otherwise, 'page x'. This is my attempt at doing that here:

If {PageRef CONT} > {Page} + 1 "the following page" "page " {Page}

I'm not very familiar with field codes just yet, and, as a programmer, I was expecting some sort of delimiter to separate each section (i.e. the 'true' value from the 'false' value), but that doesn't seem to be how this works. I have tried adding parentheses to group parts together, but that doesn't seem to work either:

If ({PageRef CONT} > ({Page} + 1)) "the following page" ("page " {Page})

Can anyone help push me in the correct direction, and give me a working example of what I need to do?

Thanks.
Reply With Quote