Can I  use dtml-in to loop through objects with a certain value for a given property.

Using dtml-in with an if statement such as <dtml-if "visible=='show'"> does not seem to work since the sequence still includes the items

What would the syntax be for dtml-in if "visible=='show'">?