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'">