Skip to main content.
home | support | download

Back to List Archive

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

From: Peter Karman <peter(at)not-real.peknet.com>
Date: Thu Oct 25 2007 - 17:04:02 GMT
On 10/25/2007 12:01 PM, Michael Peters wrote:
> 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;

did you mean

 my $ans;

?

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

-- 
Peter Karman  .  peter(at)not-real.peknet.com  .  http://peknet.com/

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