Template-Toolkit - embedded if

Posted on Tue Mar 20 22:22:39 2007 by jhill03
embedded if
I'm new to the Template-Toolkit and have a question regarding how to embed an IF condition... I have:
[% cgi.popup_menu( name => 'my_name', values => my_values, labels => my_labels, [% IF data.disabled == '1' %] disabled => data.disabled [% END %] %]
but I'm getting the following error:
unexpected token (%)
So, is it possible to embed an IF clause in this manner, or is it not possible? Thanks, Jayson
Write a response