[Templates] SWITCH and CASE.

Sergey Martynoff sergey@martynoff.info
Sat, 27 Jan 2007 14:26:39 +0300


> I would like to use SWITCH and CASE to choose what I output 
> to a page I'm 
> creating using a template.
> 
> Following the manual, I have written the following:
> 
> [% SWITCH STAR_DETAIL.instrument %]
> [% CASE NONE %]

I guess you want [% CASE 'NONE' %] and [% CASE 'READ' %]. If this wont work,
plase show us perl code where you prepare variables for 'process' method.


-- 
Sergey Martynoff