Hi Kevin, what about
<%once> my %trans = ( 'is_web'=>"Web Only", 'is_print'=>"Print" ); </%once> ...then later... <% $trans{$ads} || "Web and Print" %> should make the table producting code less messier. On Wednesday 26 July 2006 16:49, Kevin Old wrote: > Hello everyone, > > I know there's a cleaner way to do this. All I want to do is print a > word, but have more than one test case. I'd like to do it in the <% > %> print operator, but haven't been able to figure that out. > > % if ( $ads = 'is_web' ) { > Web Only > % } elsif ( $ads = 'is_print' ) { > Print > % } else { > Web and Print > % } > > > I'm printing this in a <td> tag so it make the code a little messy. > > Any suggestions are greatly appreciated, > Kevin -- --paf ------------------------------------------------------------------------- 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