Akopia Akopia Services

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

[mv] [IF] problems and "No such comparison available" errors



******    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]

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


Search for: Match: Format: Sort by: