Akopia Akopia Services

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

Re: [mv] [if] problem



******    message to minivend-users from Eric Paul <epaul@spellbook.net>     ******

I have had similar problems.  Minivend doesn't like nested [if] 
statements.  I have been told that re-writing the statements with [perl] 
will make things work easier, but in my case it was easier just to make 
seperate flypages for the various product categories than to try and do one 
catch-all flypage for everything.

Eric

At 04:45 PM 1/5/00 , you wrote:
>******    message to minivend-users from Hans-Joachim Leidinger 
><jojo@buchonline.net>     ******
>
>Hi,
>
>i have get a lot of failure with such kind of [if] tags. In my
>experience, i have noticed, if i add some line like
>
><!-- any comments -->
>
>between all the [if]..[else] tags, it works. Why have i done this?
>Well...with a simple codes like
>
>[if...]
>anystuff
>[/if]
>
>it has done all work what i wish. After adding some codes like
>
>[if...]
>anystuff
>[else]
>anystuff
>[/else]
>[/if]
>
>or
>
>[if...]
>[then]
>anystuff
>[/then]
>[else]
>[then]
>anystuff
>[/then]
>[/else]
>[/if]
>
>i have got (hmm..gotten?) failure. I was very wondering about this kind
>of the failure, because i am sure, i have writed my codes (and have used
>all the mv tags) right and correct. After a lot of test (sometimes more
>than one days), i have (..trouble and figthing with the english
>language..) been under the impression that if you use the if-tags deeper
>and deeper, minivend will be works more and more instable with this
>if-tags or the parser canīt remember all the opened if-tags and the
>closed-tags or the parser get into a muddle, if more and more
>[any-if-else-tags] is using in a complex structures.
>
>After this imageing, i have try to help the parser anyhow to regonize
>the opening/closing-tags and whatsoever, it works. Sometimes! :-)
>
>Regards
>
>Joachim
>
>BTW: Sorry for my poor english!
>
>Christopher Thompson wrote:
> >
> > ******    message to minivend-users from "Christopher Thompson" 
> <ct@arborinternet.com>     ******
> >
> > That is true. [if]'s do not nest very deep. You might try different kinds
> > of [if]'s or redo your logic and use [elsif] (and [or]/[and]).
> >
> > Christopher Thompson
> >
>[DEL]
> > > > Have you tried
> > > > [if  ...]
> > > > [then]
> > > > [/then]
> > > > [else]
> > > > [/else][/if]
> > > > sometimes this helps.
> > > Yes, I have tried. When I add [then][/then] to outer [if], it will be
> > > ok.
> > > When I add [then][/then] to both outer and inner [if], it will fail.
> > >
> > >
> > > > Chris
> > > >
> > > > zb wrote:
> > > > >
> > > > > ******    message to minivend-users from zb <zb@bisp.com>     ******
> > > > >
> > > > > Hi all:
> > > > >
> > > > >   nesting of [if] seems haveing trouble.
> > > > > ==========a.html==================================
> > > > > <html>
> > > > > [set a]1[/set]
> > > > > [set b]2[/set]
> > > > > [scratch a]<BR>
> > > > > [scratch b]
> > > > >
> > > > > [if type="scratch" term="b" op="==" compare="1"]
> > > > >         b==1
> > > > >         [if type="scratch" term="a" op="==" compare="1"]
> > > > >                 a==1
> > > > >         [else]
> > > > >                 a<>1
> > > > >         [/else]
> > > > >         [/if]
> > > > > [else]
> > > > >         b<>1
> > > > > [/else]
> > > > > [/if]
> > > > > </html>
> > > > > =======================================================
> > > > >
> > > > > zb
>[DEL]
>--
>-------------Hans-Joachim Leidinger---------------------
>
>-
>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

---
Eric Paul
SpellBook Systems
http://www.spellbook.net
-
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: