[ic] [more-list] else tag

Mathew Jones mat at bibliopolis.com
Wed Dec 3 17:38:15 UTC 2008

Hi Everyone,

I would like to get some feedback on the following modification I made to the [more-list] tag. The 
same result can probably be achieved a million ways, love to hear suggestions on how other people 
would handle this.


        if($q->{matches} < $q->{mv_matchlimit}) {
                 if($r =~ s:\[else\]($All)\[/else\]::i) {
                                 return $1;
                         } else {
                                return '';
         } else {
                 $r =~ s:\[else\]($All)\[/else\]::i;

#       return '' unless $q->{matches} > $q->{mv_matchlimit}
#               and $q->{mv_matchlimit} > 0;

This will allow alternate text to be displayed if the match count is less than the match limit. For 


[msg arg.0="[matches]" arg.1="[match-count]"]Matches %s of %s found.[/msg]

[else] [value mv_search_match_count] Results Found [/else]




More information about the interchange-users mailing list