Thanks for the all replies! <dtml-if "objectValues(['myClass'])"> <dtml-else> </dtml-if> does the job nicely. Regards, Tom.