Akopia Akopia Services

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

Re: [mv] more 'if' help help help elp....



******    message to minivend-users from cfm@maine.com     ******

On Fri, Jun 02, 2000 at 09:11:39AM +0100, Adam Kett wrote:
> Christopher Thompson wrote:
> 
> > ******    message to minivend-users from "Christopher Thompson" <ct@arborinternet.com>     ******
> >
> > Or if you have many items, put them in a database.
> 
> problem is running with lots of mysql dbs all ready, the ifs are for data being pulled out of the db
> :(
...
> > > > Subject: [mv] more 'if' help help help elp....
> > > >
> > > >
> > > > Can any help me with the syntax for a different type of if
> > > > currently I know of being able to
> > > > i.e.
> > > > [if value somthing == 1]
> > > > [then]                         something 1    [/then]
> > > > [elseif value something == 2]  something 2    [/elsif]
> > > > [else]                         something rest [/else]
> > > > [/if]
> > > >
> > > > but I would really like to be
> > > > [if value something]
> > > > [condition something == 1]  something 1      [/condition]
> > > > [condition something == 2]  something 2      [/condition]
> > > > [condition something == 3]  something 3      [/condition]
> > > > [condition something == 4]  something 4      [/condition]
> > > > .........and so on.......
> > > > [/if]
> > > >
> > > > so it finds the contion that matches and does it.
> > > > bit like a case statement.
> > > > I know that I can use no end of nested Ifs but that becomes messy
> > > > any help???????????

minivend conditionals are really not that great for complex procedures.
Investigate [perl]


-- 

Christopher F. Miller, Publisher                             cfm@maine.com
MaineStreet Communications, Inc         208 Portland Road, Gray, ME  04039
1.207.657.5078                                       http://www.maine.com/
Database publishing, e-commerce, office/internet integration, Debian linux.
-
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: