MiniVend Akopia Services

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

Re: translating??



******    message to minivend-users from Barry Treahy <treahy@mmaz.com>     ******

According to my Perl 5 book, the first is for equating strings while the second is
for numbers.

Barry

betty c wrote:

> ******    message to minivend-users from betty c <bc90007@yahoo.com>     ******
>
> Thanks Mike that works great,
>
> the [if value thelevel eq "3"] had to change it
> to
> [if scratch thelevel == "3"]
>
> what's the different between value and scratch.
>
> betty
>
> --- mikeh@minivend.com wrote:
> > Quoting betty c (bc90007@yahoo.com):
> > > hi Mike,
> > >
> > > I'm Betty From Digital Starlight.
> > >
> > > I need your help.. Did I made this too
> > complex
> > > for minivend. Can I do this in minivend?
> > >
> > >
> > > On MV 3.12
> > >
> > > To Show the bottons for certain conditions on
> > the
> > > flypage.html
> > > The conditions will be picked up from
> > selection
> > > file
> > >
> > > I get this
> > >
> > >  [data base="selection" field="level"
> > key="[value
> > > thekey]"]   for thelevel variable
> > > is not
> > parsing/interplating/translatingbc90007
> > > Why?
> > >
> >
> code----------------------------------------------
> > >
> >
> > The problem is that the [set ...] tag doesn't
> > interpolate
> > contained tags by default.
> >
> > So
> >
> > > [set theuser][data session username][/set]
> >
> > should be:
> >
> >  [set name=theuser interpolate=1][data session
> > username][/set]
> >
> > and
> >
> > > [set thekey][value
> > theuser]pmy[item-code][/set]
> >
> > should be:
> >
> >  [set name=thekey interpolate=1][value
> > theuser]pmy[item-code][/set]
> >
> > At that point I don't see why it wouldn't work.
> >
> > > [set name=thelevel interpolate=1]
> > > [data base="selection" field="level"
> > key="[value
> > > thekey]"][/set]
> > >
> > > [if value thelevel eq ""]
> > >   <input type="image" src="daterequest.gif"
> > > name=mv_click.daterequest BORDER=0>
> > >   <input type=hidden name=mv_click_map
> > > value="daterequest">
> > > [/if]
> > > [if value thelevel eq "5"]
> > >   <input type="image" src="decline.gif"
> > > name=mv_click.decline BORDER=0>
> > >   <input type=hidden name=mv_click_map
> > > value="decline">
> > > [/if]
> > >
> > > ------------------------------------------
> > > I tried this also
> > > [set thelevel]
> > > [data base="selection" field="level"
> > > key="[data session username]pmy[item-code]"]
> > > [/set]
> > >
> > > the variable  thelevel contains
> > >
> > >  [data base="selection" field="level"
> > key="[data
> > > session username]pmyAbner"]
> > >
> > >
> > > i tried the simplify the steps not sure how
> > the
> > > parser works.
> > >
> > > Can you clue me in on this ......
> >
> >
> >
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.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


Search for: Match: Format: Sort by: