[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
RE: [mv] v3.12 - [sort] not working with [loop args]
****** message to minivend-users from "Christopher Thompson" <ct@arborinternet.com> ******
I agree, I don't think sort will work on a loop through values, but might
work on [loop search=..."] which seems to be a no frills [search-region].
I infer from Mike's comments that [loop] works by duplicating the code
within the loop for each item in the list, and doing a sort of macro
replacement of the [loop-...] tags as it goes. It is not really a
branching loop the normal sense.
Remember, MML is not a programming language. Believing it is will cause no
end of suffering.
> -----Original Message-----
> From: owner-minivend-users@minivend.com
> [mailto:owner-minivend-users@minivend.com]On Behalf Of Ryan Hertz
> Sent: Wednesday, April 12, 2000 2:38 PM
> To: minivend-users@minivend.com
> Subject: Re: [mv] v3.12 - [sort] not working with [loop args]
>
>
> ****** message to minivend-users from Ryan Hertz
> <rhertz@gyb.baits.com> ******
>
> At 11:27 AM 4/12/00 , you wrote:
> >****** message to minivend-users from Ed LaFrance
> ><edlafrance@printexusa.com> ******
> >[snip]
>
> >...still a blank page! Finally I tried:
> >
> >[loop arg="4 3 2 1"]
> > [sort]
> > [loop-code]
> >[/loop]
> >
> >...and...
> >
> >[loop arg="4 3 2 1"]
> > [loop-code]
> >[/loop]
> >
> >At last the args were listed on the page, but they were not
> sorted in the
> >instance where the [sort] tag was included.
> >
> >So, it appears that:
> >
> >1). [loop arg arg arg] does not work at all, though the docs say it is
> >legal; [loop arg="arg arg arg"] must be used instead;
>
> I agree.
>
>
> >2). [sort] does not work at all in this context. I have used [sort
> >database::fieldname] with [tag each database] and [loop
> search], so I know
> >those work, but when the loop data is supplied as a literal
> argument or
> >variable string and/or the sort is based on the loop data
> itself (instead
> >of a related database field), the sort tag appears to be broken.
>
> It doesn't make logical sense to me that the sort
> would be inside
> the loop. It seems that in that syntax that each looped arg
> will exist as
> a single item, sorting a single item wouldn't do much. Perhaps if the
> [sort] encompassed the [loop] it would work. But, :-), I don't
> have much
> experience with using [sort].
>
>
>
> Ryan Hertz tel
> 800-645-BAIT
> Webmaster fax
> 520-645-2588
> Advertising Director
http://yamamoto.baits.com
Gary Yamamoto Custom Baits, Inc. http://www.insideline.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
-
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