Back Table of contents Index Next   BibTool Manual
Reference Manual
Format Specification
If-Then-Else

If-Then-Else

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:

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.



Back Table of contents Index Next   BibTool Manual
Reference Manual
Format Specification
If-Then-Else
© 1999 Gerd Neugebauer