Re: [htmltmpl] ElseIF syntax...
Brought to you by:
samtregar
From: MArk W. <ma...@or...> - 2002-11-20 09:24:59
|
We just set the error template var in the cgi/application, to the message we want to put out and use:- <TMPL_IF ERROR> %ERROR% </TMPL_IF> MArk WIlliams simran wrote: > Hi All, > > I have a template where i really need to use "else if" conditions? How > do you all handle places where you need to use "else if"? > > A sample of my situation is: > > <tmpl_if name="error1"> > Error one occured > <tmpl_elseif name="error2"> > Error two occured > <tmpl_else> > No error could be determined... > </tmpl_if> > > If if was just two error messages, i could nest the if's but i have a > situation where i might have hundreds!!! > > simran. > > > > ------------------------------------------------------- > This sf.net email is sponsored by: To learn the basics of securing > your web site with SSL, click here to get a FREE TRIAL of a Thawte > Server Certificate: http://www.gothawte.com/rd524.html > _______________________________________________ > Html-template-users mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/html-template-users > |