MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: i need help with a pricing scheme



At 05:43 PM 9/2/99 , you wrote:
>******    message to minivend-users from mikeh@minivend.com     ******
>
>Quoting kenshin (kenshin@planetanime.com):
>> >
>> > [if explicit]
>> > [condition]
>> > 	$currently = '[loop-field category]';
>> > 	return 1 if $currently eq "apparel";
>> > 	return 0;
>> > [/condition]
>> > <TABLE WIDTH="80%"><TR BGCOLOR="blue"><TD ALIGN=CENTER><BR><FONT
>> > COLOR="white"><H2>Apparel</H2></FONT></TD></TR></TABLE>
>> > [/if]
>> >
>> 
>> I do something similar to this but do you know how i would add more
>> if/else/thens inside this [if]?
>
>
>The best way to do things like this is:
>
>[perl arg=scratch]
>	my $test1 = q{[loop-field foo]} eq 'this';
>	my $test2 = q{[loop-field bar]} eq 'that';
>	$Safe{scratch}{result} = $test2 || $test1;
>	return '';
>[/perl]
>
>[if scratch result]
>	consequence...
>[/if]
>
>This will be a lot less labored in MV4, believe me. More soon...

Ah, I would imagine that [perl] would be more effecient than [if
condition]-type operations.... but, I'm too darn lazy to clean up my pages.
 Especially with a new, bad-as-heck server.  I should work for Micro$oft.



Ryan Hertz                                              tel  800-645-BAIT
Webmaster                                               fax  520-645-2588
Advertising Director                            http://www.insideline.net
Gary Yamamoto Custom Baits, Inc.            http://www.yamamoto.baits.com


Search for: Match: Format: Sort by: