https://bugs.documentfoundation.org/show_bug.cgi?id=128041

Heiko Tietze <heiko.tie...@documentfoundation.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |olivier.hallot@libreoffice.
                   |                            |org

--- Comment #6 from Heiko Tietze <heiko.tie...@documentfoundation.org> ---
Variables are valid throughout the whole document. In your example, the first
line with set=1 is overridden by the second "Set flag" operation. And the
second flag=0 is taken into the footer of all pages.

Unfortunately. variables cannot take variable content such as the page number.
>From the documentation
https://wiki.documentfoundation.org/images/b/bc/WG6017-Fields.pdf:

<documentation>
Conditional text
With conditional text, you can have two alternative texts (a word, phrase, or
sentence). One text will be displayed and printed if the condition you specify
is met, and the other will be displayed and printed if the condition is not
met. You cannot include graphics or edit the text except in the field dialog
(not in the body of the document). You also cannot format part of the text (for
example, bolding one word but not the others), but you can format the field to
affect
all of the field contents (for example, bolding all of the words). You cannot
include a cross-reference or other field in the text.
...
Conditions are what programmers call logical expressions. You must formulate a
logical expression for each condition because a condition is always either true
(met) or false (not met). You can use the same condition in many places in your
document, for different types of conditional content.
...
You cannot use internal variables (for example, page number, or chapter name)
to formulate conditions.
</documentation>
(adding Olivier in case something is not clear at the documentation)


An idea to solve your "last page" problem might be, if it's about the header,
to understand this last page as the first page of the next section.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to