Gossamer Forum
Quote Reply
if clause
I'm having problem getting a simple if clause working in the detailed.html template.

I have one field that is a multi-select, and I want to be be able to do the following:

<%if options eq option1%> display option 1 <%endif%>
<%if options eq option2%> display option 2 <%endif%>
<%if options eq option3%> display option 3 <%endif%>

But if more than one option is selected in the multi-select, then nothing is displayed. The "if equal" clause only works if one option is selected.

Any ideas?
Subject Author Views Date
Thread if clause joeybone 4746 Jun 20, 2009, 10:23 PM
Thread Re: [joeybone] if clause
Andy 4625 Jun 21, 2009, 2:19 AM
Thread Re: [Andy] if clause
joeybone 4620 Jun 21, 2009, 3:54 AM
Thread Re: [joeybone] if clause
Andy 4620 Jun 21, 2009, 5:26 AM
Post Re: [Andy] if clause
joeybone 4613 Jun 21, 2009, 5:58 AM