Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] Change the indexed 'title'

From: Michael Peters <mpeters(at)not-real.plusthree.com>
Date: Thu Oct 25 2007 - 17:01:00 GMT
josh@relativelysane.com wrote:

>Now I just have to figure out how to do a 'if - then - else' string in perl ;-)  
>(for example; if 'flavor' = 'whatever' use 'strong', elseif 'flavor' =
'thisotherthing' use 'a', else use 'normal')

my $str;
if( $flavor eq 'whatever' ) {
  $ans = 'strong';
} elsif( $flavor eq 'flavor' ) {
  $ans = 'a'
} else {
  $ans = 'normal';
}

-- 
Michael Peters
Developer
Plus Three, LP

_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Thu Oct 25 13:01:37 2007