[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: help again
****** message to minivend-users from Ryan Hertz <rhertz@gyb.baits.com> ******
When I do conditionals I use this syntax:
[if explicit]
[condition]
$currentitem = '[item-code];
return 1 if $currentitem eq "11-20";
return 0;
[/condition]
You picked item 11-20.
[else]
You did not pick item 11-20.
[/else]
[/if]
At 10:16 AM 1/7/99 , you wrote:
>****** 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
>
Ryan Hertz tel 520-645-3812
Webmaster tel 800-645-BAIT
Advertising Director fax 520-645-2588
Gary Yamamoto Custom Baits, Inc. http://www.yamamoto.baits.com
-
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
- References:
- help again
- From: Evan Thomas <tps.elt@mars.planetary.org>