Forum OpenACS Q&A: Re: break out of a multiple tag?

Collapse
Posted by Jeff Davis on
Here is a code snippet from acs-templating/resources/forms/standard.adp with a break. It's ugly and bad practice, but it does work (and I think might point to some places where it might make some sense to have a break tag).
<multiple name="elements">
  <if @form_properties.show_required_p@ true>
    <if @elements.optional@ nil and @elements.mode@ ne "display" and @elements.widget@ ne "inform" and @elements.widget@ ne "select" and @elements.widget@ ne "h
idden" and @elements.widget@ ne "submit">
       <span class="form-required-mark">*</span> #acs-templating.required# 
       <% break %>
    </if>
  </if>
</multiple>
Collapse
Posted by tammy m on
Wow,

Thanks Jeff:) How did I miss that?! I have been looking at form style standards all day. Bad eyes? Not to mention that, looking at the sample you posted, it seems so obvious now. Sigh. Programming is sometimes not so easy on the ego!