S
Scoprio540
Im working on a document that requires an IF statement in a field cod
in the footer.
This field code will detect if a bookmarked value exists and use it o
use the {SECTIONPAGES} tag (if it doesn't exist).
The field code is as follows -
{ if { PAGEREF { styleref "Section Heading" \r\t }SubSectionPage }
"Error! Bookmark not defined." {SECTIONPAGES} {PAGEREF { stylere
"Section Heading" \r\t }SubSectionPage} }
which then should equate to the following
{ if { PAGEREF HSubSectionPage } = "Error! Bookmark not defined.
{SECTIONPAGES} {PAGEREF HSubSectionPage} }
(HSubSectionPage is the bookmarked value)
However, my problem is that it always returns "Error! Bookmark no
defined." and therefore doest not evaluate it properly.
I think I have narrowed it down to the fact that it does not evaluat
the 'IF' statement in the correct order.
Please Help.
Thanks in advance
scorpio54
in the footer.
This field code will detect if a bookmarked value exists and use it o
use the {SECTIONPAGES} tag (if it doesn't exist).
The field code is as follows -
{ if { PAGEREF { styleref "Section Heading" \r\t }SubSectionPage }
"Error! Bookmark not defined." {SECTIONPAGES} {PAGEREF { stylere
"Section Heading" \r\t }SubSectionPage} }
which then should equate to the following
{ if { PAGEREF HSubSectionPage } = "Error! Bookmark not defined.
{SECTIONPAGES} {PAGEREF HSubSectionPage} }
(HSubSectionPage is the bookmarked value)
However, my problem is that it always returns "Error! Bookmark no
defined." and therefore doest not evaluate it properly.
I think I have narrowed it down to the fact that it does not evaluat
the 'IF' statement in the correct order.
Please Help.
Thanks in advance
scorpio54