[Templates] SWITCH and CASE.
Éric Depagne
edepagne@astro.puc.cl
Sat, 27 Jan 2007 09:20:16 -0300
Le samedi 27 janvier 2007 08:26, Sergey Martynoff a écrit :
> > 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 %]
Hi Sergey
> 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.
This is exaclty it!
It works perfectly, the test works, and output depending on the content of the
variable works.
Thanks a lot.
Éric.
--
Un clavier azerty en vaut deux
---------------------------------------------------------------
Éric Depagne edepagne@astro.puc.cl
European Southern Observatory
Alonso de Cordova 3107
Santiago 19, Chile
---------------------------------------------------------------