Page 1 of 1
parsing rules
Posted: Sun Apr 23, 2006 8:15 am
by thecritic
I'm confused about parsing rules. How do I "bind" a string to a following field such that the string is output if and only if that following field is NOT empty, but regardless of the state of the preceding field? The $ character removes the string if EITHER field is empty.
Posted: Sun Apr 23, 2006 10:36 am
by ozean
you have to use ~ and |
say you would only like to have a colon after the author name only if the following field (page) is not empty
it would look like this:
a|~: ~p
the | breaks the binding of the ": " sequence with the author field and the ~ in front of the page field connects the ": " sequence to the existance of the page field so as to require a value for the page field to display the ": " sequence.
hope this helps.