[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] if problems under 4.04a
****** message to minivend-users from John Beima <jbeima@palb.com> ******
G'Day Eric,
This shoudl work fine:
[seti test][data base="products" field="field3" key="[item-code]"][/seti]
[if type="data" term="products::field1::[item-code]" op="ne"
compare="[scratch test]"]
<FONT FACE="Arial" COLOR="__HEADERTEXT__" SIZE="-1"><B>Field2:
[item-field field2]
[/if]
[set test][/set]
John Beima
P.A.L.B. Systems
(780)451-1086
jbeima@palb.com
Quoting Eric Paul <epaul@spellbook.net>:
> ****** message to minivend-users from Eric Paul
<epaul@spellbook.net>
> ******
>
> I'm having a weird problem with MiniVend 4.04a. I have a results page
that
>
> I want to return several fields from the products database. Two of the
> fields have some overlap, and if they contain the same data, I don't
want
> to clutter the HTML by displaying both of them. I am trying to do a
> compare on the two fields, and if they match I don't output the second
> field to the page. Sounds straightforward, but for some reason it's
giving
>
> me a big headache. I've tried to write this code a number of ways, but
> none of them are working. Here's the latest code I've tried:
>
> [if data [item-field field1] ne [item-field field3]]
> <FONT FACE="Arial" COLOR="__HEADERTEXT__" SIZE="-1"><B>Field2:
[item-field
> field2]
> [/if]
>
> Can someone tell me what I'm doing wrong? I'm sure it's something
simple,
> but it's had me baffled all morning...
>
> Eric
> ---
> Eric Paul
> SpellBook Systems
> http://www.spellbook.net
> -
> 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