[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] [perl] my $problem = "Can't figure out conditionals and writes" [/p...
****** message to minivend-users from Handytman@aol.com ******
In a message dated 8/15/00 11:00:28 AM Eastern Daylight Time,
zack@augustine.com writes:
> [perl]
> // Let's get to my first problem
> $CurrentProblem = 1;
> // I'm not sure this variable gets set the way I think it does
> // (i.e. for use in later perl islands)
> [/perl]
>
>
> . . . HTML & minivend (interchange 4.5.5) tags, &tc . . .
>
>
> [loop search . . .]
>
> [perl]
> // On to the next problem
> $CurrentProblem++;
> // I can't seem to get conditionals to evaluate, based on
> // the initialization from the first perl island, and subsequent
> // autoincrementations. . .
> if ($CurrentProblem == "3") {
> $Document->write("Let's a special message for the third loop
only.
> . .");
> }
>
> // The idea is to print 3 columns of thumnails on each row
> // until the query runs out of records. Unfortunately, my
> // code does NOT accomplish this. I'm sure I'm missing
> // something silly.
> // Thanks in advance.
Zack,
Actually, you can skip the perl calls and accomplish your table formatting
with straight MV tags. Try the [item-alternate][/item-alternate] container
tags. From the docs:
>> Set up an alternation sequence. If the item-increment is divisible by N,
>> the text will be displayed. If an [else]NOT DIVISIBLE TEXT[/else] is
>> present, then the NOT DIVISIBLE TEXT will be displayed.
>> For example:
>> [item-alternate 2]EVEN[else]ODD[/else][/item-alternate]
>> [item-alternate 3]BY 3[else]NOT by 3[/else][/item-alternate]
Regards,
Rob Maurer
-
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