This is a user-defined fragment similar to the other fragments above that can substitute additional content for {Fragment_[User]} tags in other parts of the template. [User] is a user-defined fragment name. The only restriction is that it is not the same as one of the other fragments defined in this document. An unlimited number of user-defined fragments may be included in a template. We need some kind of way of customizing the list .. so probably do the same kind of thing as we do with the current image tag implementation (i.e. we'd have some kind of number pagelist implementation so the designer could determine how the list will be displayed. The fragment reference can include a conditional expression that will determine whether the fragment is substituted. A null string is substituted if the expression evaluates to 0. The expression immediately follows the fragment reference.
The conditional expression can include the following terms:
include_if([expression]) - Include this fragment if the expression in theparentheses evaluates to non-zero.
defined([uservar]) - return true if the user-defined variable specified in the parentheses is defined and is not null.
define([uservar]) - forces a user-defined variable to be defined and set to 1, then returns 0. the user-defined variable specified in the define statement does not have to be previously declared with the UserVar tag. this variable is temporary so the value is not saved with the album like the regular user-defined variables.true - returns true false - returns false
|| - logical or, returns true if either the left or right side of the expression are true.
&& - logical and, returns true only if both the left and right side of the expression are true.
== - comparison, returns trus only if both the left and right side of the expression are the same.
The expression can also contain numbers and strings (which must be quoted with double-quotes). This allows numerical and string comparisons to be done.