Difference between revisions of "EPScript/Examples"

From EPrints Documentation
Jump to: navigation, search
m
Line 1: Line 1:
{{Navigate-Last|Section=EPScript|Curr=Examples|Prev=XML Syntax}}
+
{{EPScript}}
  
 
= Examples =
 
= Examples =

Revision as of 13:36, 9 October 2006

EPScript

Examples

Pluralising the editors of a book:


<if test="type = 'book' and is_set(editors)">
  <print expr="editors" />, (ed<if test="length(editors) gt 1">s</if>
</if>