MiniVend Akopia Services

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

Re: [if type term] SOLUTION [/if]



******    message to minivend-users from "Rob Zimmerman" <rob@readysite.net>     ******

Thanks Bill and others. 
Bills code worked great.  

I do have another question regarding this. I havent read the chapter on 
Pattern Matching yet in my Perl book but I do know that the =~ operator
tests for pattern matching but I dont understand /1/i/ ? what pattern is that?

Thanks again
Rob
------------

> > ******    message to minivend-users from "Rob Zimmerman" <rob@readysite.net>     ******
> > 
> > I am trying to get a "best seller" image to pop up on certain items and am
> > using various <if> statements to try and get this to work and i am having no
> > luck.
> > 
> > This is what I am trying to do: ( not this code just an explanation)
> > 
> > [if item-code-field contains a value]
> > Then print this image
> > [/if]
> > 
> > I have tried using various versions of:
> > [if type=value term=s_bseller]
> > print this image
> > [/if]
> > 
> > And my error log is saying " Bad if
> >  ' s_bseller  ': No such comparison available"
> > 
> > Any ideas? s_bseller is in my products.asc with the item codes as values of
> > those that get this image.
> > 
> > Many thanks,
> > Rob
> > ----------
> 
> Rob:
> I do the same thing with a "new" gif like this:
> 
> [if data products::new::[item-code] =~ /1/i]
> <IMG SRC="new.gif">
> [/if] 
> 
> -- 
> Bill Betz
> bill@pennherb.com
> --
> Visit our websites at:
> http://www.pennherb.com and http://www.olbas.com
> --
> Over 7000 herbs and healthy products on line at: 
> http://www.pennherb.com/cgibin/herbstore.cgi
> --
> -
> 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


Search for: Match: Format: Sort by: