Akopia Akopia Services

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

RE: [mv] if explicit problems



******    message to minivend-users from "Cameron B. Prince" <cameron@akopia.com>     ******

Hi Stan,

You can drop to perl and do it like this...

		[set name="pay_type" interpolate=1][perl interpolate=1]
		my $payment = '[value mv_payment]';
		if ($payment eq 'CyberCash Credit Card') { return 1; }
		else { return 0; }
		[/perl][/set]

[if scratch pay_type]

Print this

[else]

Print this

[/else]
[/if]

Good luck,

Cameron

-----Original Message-----
From: owner-minivend-users@minivend.com
[mailto:owner-minivend-users@minivend.com]On Behalf Of Stan Crump
Sent: Thursday, October 19, 2000 3:33 PM
To: minivend-users@minivend.com
Subject: [mv] if explicit problems


******    message to minivend-users from "Stan Crump" <stanc@amintech.com>
******

I've tried a BUNCH of different combinations trying to accomplish the simple
little conditional below... Can anyone please tell me what might work or if
there's a more suitable mv_variable that I could be using to make such a
comparison?
Thanks!

<snip>
[if explicit][condition] [mv_payment] eq "CyberCash Credit Card"
[/condition]
Print this line
[else]
Print a different line
[/else][/if]
<snip>

-
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


Search for: Match: Format: Sort by: