calabash has asked for the wisdom of the Perl Monks concerning the following question:
Sample.tmpl:if(True){ $template->param(TC_Rst_OK=>0); }else{ $template->param(TC_Rst_OK=>0); }
<TMPL_LOOP NAME=TC_Loop> <tr> <td><TMPL_VAR NAME=TC_Num></td> <td><TMPL_VAR NAME=TC_Name></td> <TMPL_IF NAME=TC_Rst_OK> <td style="color:Blue"><TMPL_VAR NAME=TC_Rst></td> <TMPL_ELSE> <td style="color:Red"><TMPL_VAR NAME=TC_Rst></td> </TMPL_IF> <td><TMPL_VAR NAME=TC_Time></td> <td>Expand</td> </tr> </TMPL_LOOP>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML::Template how to use IF/Else in a LOOP
by moritz (Cardinal) on Jan 20, 2011 at 20:50 UTC | |
by tinita (Parson) on Jan 21, 2011 at 11:02 UTC | |
|
Re: HTML::Template how to use IF/Else in a LOOP
by calabash (Novice) on Jan 26, 2011 at 07:58 UTC |