On Wed, Jul 26, 2006 at 10:49:37AM -0400, Kevin Old wrote: > I'd like to do it in the <% %> print operator, but haven't been > able to figure that out.
I will chain the ternary if need be, but it can be ugly, best for only 1 test case. <% $ads eq 'is_web' ? 'Web Only' : $ads eq 'is_print ? 'Print' : 'Web and Print' %> The real lesson here, is that there should be as little logic in your presentation as possible. Perhaps put your if block in your <%init> set a $mode and use <% $mode %> in your <td>. -- jcap ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users