![]() ![]() ![]() ![]() |
BibTool Manual![]() ![]() ![]() |
Depending on the presence of a (pseudo-) field formatting instructions can be issued. This corresponds to an if-then-else statement in a PASCAL-like language. The syntax is as follows:
(
field)
{
then-part}
{
else-part}
If the access to the (pseudo-)field as described in Formatting Fields succeeds then the then-part is evaluated. Otherwise the else-part is evaluated. Both parts may be empty. Nevertheless the braces are required.
Let us look at an example. The following construction can be used to format a field author if it is present or print a constant string.
(author){
%N(author)}{--no-author--}
![]() ![]() ![]() ![]() |
BibTool Manual![]() ![]() ![]() |