MiniVend Akopia Services

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

[if] [/if] tags help....



Hi!
 
Well first i have to admin that i am in my very first stage of learning Perl, and i am absoultly not considering myself as beginner yet..8-)
 
I am trying to make some changes in the RESULT.HTML page which will show on every diffrent category
a diffrent header, as for now i tested those 2 ways, and none of them helped me as needed, i will appricate
if some one can help me with this one...
 
I tried:
[if explicit]
    [condition]
        $categroy = '[item-field catergory]';
        return 1 if $category eq storage;
        return 0;
    [/condition]
    blahhh blahh blahhh blohhh... (which mean the condition returned 1)
    [else]
    blahhh blahh blahhh blihhhh... (which mean the condition returned 0)
    [/else]
    [/if]
 
This one worked fine but only to one condition, i couldn't manage to expand it (with adding more "return"s) beyond
the example i wrote (which i took from the MV tags doc).
 
i tried also a simple [if][/if] statement like:
[if [item-field category] eq storage][then]blahhh blahh blahhh blohhh... (which mean it is)[/then]
(i tried also without the [then])
 
I also tried to convert the following example to my needs but gurnisht, nada, nothing went well...:
[if value name =~ /^mike/]
                                This is the if with Mike.
    [elsif value name =~ /^sally/]
                                This is an elsif with Sally.
(and so one this thing continues..)
 
 
Well, Please help....
 
Thanks in Advance,
Bye Bye & Best Wishes,
Eran Binyamin Zeitoun.

 
 
 
 
 

 

 

Search for: Match: Format: Sort by: