in reply to HTML::Template how to use IF/Else in a LOOP

Thanks for the advices! Finally I solved my former request by adding another <TMPL_VAR> to describe color in the loop. So the color will be changed automatically for each case.
<TMPL_LOOP NAME=TC_Loop> <tr> <td><TMPL_VAR NAME=TC_Num></td> <td style="color:DarkSlateGray "><TMPL_VAR NAME=TC_Name></td> <td style=<TMPL_VAR NAME=TC_Rst_Color>><TMPL_VAR NAME=TC_Rst></td> <td style=<TMPL_VAR NAME=TC_Rst_Color>><TMPL_VAR NAME=TC_Time></td +> <td ><a href=<TMPL_VAR NAME=TC_Ref>>ExpandRef</a></td> </tr> </TMPL_LOOP>