in reply to Re: html::template if and else
in thread html::template if and else

yeah..unfortunately, i couldn't find of theres any "VAL" or "VALUE" keyword in its TMPL_IF statement to see its value of the field instead of the name of the field instead. but it's so simple, do you mean html::template can't do an if statement to check for a value of the field? my whole pages were coded with html template..i can't just quit now

Replies are listed 'Best First'.
Re^3: html::template if and else
by ysth (Canon) on Feb 19, 2008 at 07:11 UTC
    Yes, I mean just that. The HTML::Template author felt it was better to make people write Perl code to calculate things like "optionvalue_is_C", "optionvalue_is_D", etc.

    But HTML::Template::Expr is module compatible with other HTML::Template syntax that allows you say <TMPL_IF EXPR="optionvalue eq 'C'">