Akopia Akopia Services

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

[mv] Perl Variables in a Minivend Tag..



Hello List.
 
 
I Know that I have seen the solution to this somewhere. But for the life of me cannot find it so I am requesting some help from the llist.. The problem is in the [if] [/if]. I have a  search results page that I need to dynamically setup to create a table of thumbnails.. using Perl to initialize a counter.. then doing a comparison.. The problem is that I can't get the Minivend [if] to work correctly. I keep getting an Invalid  'No such comparison available' when I run it. The question is How do I interpret a Perl Variable in a minivend tag..
 
This is the actual Code that I am using... everything works except the [if] [/if]...   I am using MV 3.14...
 
TIA
 
Richard Crumlich
 
 
 
<TABLE border=1>
    <TR>
        <td>
            [value mv_search_match_count] total found <br>
            Rows Needed [calc][value mv_search_match_count] / 4[/calc]
           <! [calc]$tdcount=0 [/calc] >
        </td>
    </tr>
    <tr>
        [search-region] 
            [search-list]
                <! [calc]$tdcount++[/calc] >
                [if [calc]$tdcount[/calc] > 3]
                    </tr>
                    <! [calc]$tdcount=0[/calc] >
                    <tr>
                [/if]
                <TD width=100><IMG src="/images/[item-field thumb_image]">
                    <br>[item-field name]<br>
                    [calc]$tdcount[/calc] of [value mv_search_match_count]
                </td>
            [/search-list]
        [/search-region]
    </TR>
 </TABLE>

Search for: Match: Format: Sort by: