[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
RE: [mv] [IF] problems and "No such comparison available" errors
****** message to minivend-users from "Christopher Thompson" <ct@arborinternet.com> ******
Wouldn't it make more sense to do something like:
[search-region co=yes
sf=restricted_to
sf=main_catagory
se=[value mygroup]
se=1
]
[search-list]
[item-code]
[/search-list]
[/search-region]
You could do it with [loop] as well, but you don't get the [more]
features.
I just hope Mike Heins didn't see that [tag each] with the [if] inside.
You would hear the groan all the way from Ohio.
> -----Original Message-----
> From: owner-minivend-users@minivend.com
> [mailto:owner-minivend-users@minivend.com]On Behalf Of Ryan Hertz
> Sent: Monday, February 21, 2000 5:53 PM
> To: minivend-users@minivend.com
> Subject: Re: [mv] [IF] problems and "No such comparison available"
> errors
>
>
> ****** message to minivend-users from Ryan Hertz
> <rhertz@gyb.baits.com> ******
>
> At 04:49 PM 2/21/2000 , you wrote:
> >****** message to minivend-users from Michael Bringle
> ><mbringle@optum.com> ******
> >
> >Hello,
> >
> >OS : Solaris 2.7(x86)
> >MiniVend: 3.14-5
> >
> > I have a question based on the [IF] tag. I tried for
> 8 hours to
> > get this to work, and was not successful even after
> consulting the FAQ
> > and manual. I have a DB in the holding key words, who can
> see them, and
> > if they are "main categories":
> >
> >DATABASE catagory(TAB delimited):
> >---------------------------------
> >name restricted_to main_catagory
> >England all 0
> >Vacation all 0
> >Friends all 0
> >Cornell all 1
> >
> >When I build the side menu I want to display the "name" if it
> is both a
> >main_catagory and in the users group. I started out just
> worrying about
> >the first restriction but:
> >
> > [tag each catagory]
> > [if [loop-data catagory main_catagory] == 1]
> > <B>[loop-code]</B>
> > <BR>
> > [/if]
> > [/tag]
>
> So, name is unique for each entry? Does MiniVend mind that category is
> misspelled? Probably not, but check your code. I would try using 'eq'
> instead of '==' and see if that doesn't make it work. Numeric
> operations
> need numeric operators, right? No such comparison available?
> [Calc] is
> possibly converting numbers to strings.
>
>
> >never worked and would always return all or none depending on the
> >comparison operator. Error logs show a bunch of "No such comparison
> >available" errors. What I finally got to work was:
> >
> > [tag each catagory]
> > [loop-next][calc][loop-data catagory
> main_catagory] ==
> > 0[/calc][/loop-next]
> > <B>[loop-code]</B>
> > <BR>
> >
> > [/tag]
> >
> >But I would like to know where I went wrong on the [IF]
> statement so I can
> >later add in more complex. I tried various combinations of
> type, op and
> >the other codes but that also failed.
> >
> >Thanks,
> >Mike
> >
> >-
> >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
Ryan Hertz tel 800-645-BAIT
Webmaster fax 520-645-2588
Advertising Director http://www.insideline.net
Gary Yamamoto Custom Baits, Inc. http://www.yamamoto.baits.com
-
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