[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: help again
****** message to minivend-users from "Michael Radke" <mra@trendware.de> ******
Dear Evan,
why don't you try out this...:
[perl interpolate=1]
$search = '[value mv_searchspec]';
$list = 'Posters Prints Misc Calendars Assembly Models Slides Tshirts';
if (index($list, $search) >= 0) {
$out = <<END;
Category: [value mv_searchspec]<br>
[value mv_search_match_count] titles found
END
}
else {
$out = <<END;
[page srchform] <IMG BORDER=0 SRC="search.gif" ALT="SEARCH"></A>
[L]Search Results[/L]<BR>
[value mv_search_match_count] titles found for [value mv_searchspec]
END
}
$out
[/perl]
I am not a perl expert, but i did such workarounds because i also had
a lot of trouble with that condition and value things..
Hope it works, dont laugh about my perl syntax :-)
Regards!
Michael Radke
-----Ursprüngliche Nachricht-----
Von: Evan Thomas <tps.elt@mars.planetary.org>
An: Minivend-Users@Minivend. Com <minivend-users@minivend.com>
Datum: Freitag, 8. Januar 1999 14:11
Betreff: help again
>****** message to minivend-users from Evan Thomas
<tps.elt@mars.planetary.org> ******
>
>Now I have this, and it still is not working. Always evaluates the
>[else] part. I have the latest perl and minivend, etc.
>
>[if explicit]
>[condition]
> $search = '[value mv_searchspec]';
> if($search eq "Posters"){return 1;}
> elsif($search eq "Prints"){return 1;}
> elsif($search eq "Misc"){return 1;}
> elsif($search eq "Calendars"){return 1;}
> elsif($search eq "Assembly"){return 1;}
> elsif($search eq "Models"){return 1;}
> elsif($search eq "Slides"){return 1;}
> elsif($search eq "Tshirts"){return 1;}
> else{return 0;}
>[/condition]
> Category: [value mv_searchspec]<br>
> [value mv_search_match_count] titles found
>
>[else]
> [page srchform] <IMG BORDER=0 SRC="search.gif" ALT="SEARCH"></A>
> [L]Search Results[/L]<BR>
> [value mv_search_match_count] titles found for [value mv_searchspec]
>
>[/else]
>[/if]
>
>any ideas??
>
>Thanks,
>Evan
>
>-
>To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
>email with 'UNSUBSCRIBE minivend-users' in the body to
Majordomo@minivend.com.
>Archive of past messages: http://www.minivend.com/minivend/minivend-list
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list