Forum OpenACS Development: Re: New template tags - switch statement

Collapse
Posted by Dan Wickstrom on
Ola, Your feature request is easy enough to implement, but it's already supported via the regexp flag:

<switch flag=regexp @switch_var@>
    <case value="foo|bar|baz">
        You selected foo bar or baz
    </case>
   .
   .
   .
</switch>

Of course regexps are kind of obscure to non-programmers, so your feature might be useful to make it more accessible to graphics designers...