[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] [if] tag question
****** message to minivend-users from Hans-Joachim Leidinger <jojo@buchonline.net> ******
Brian Hanley schrieb:
>
> ****** message to minivend-users from "Brian Hanley" <hanley@parrett.net> ******
>
> Gideon,
>
> Thank you for your help. I looked in the docs previously and tried the
> exact tag that you sent me, and it didn't work. Like I said, there is
> something in that variable, as [box-code] prints the contents. Also, I did
> make sure that there are no whitespaces, stupid chars, etc. in the variable
> preventing the match. Any other ideas, or suggestions for diagnostics?
>
> Thank you and take care,
>
> Brian Hanley
Brian,
there are a lot of [if...] tag. Get the minivend.html (all in one file)
and search for "[if" and you can see a lot of different [if...] tags. If
you are using some stuff of codes inside a loop tags, maybe
-----snip------
[if-loop-data table field] IF [else] ELSE [/else][/if-loop-field]
Outputs the IF if the field in table is non-empty, and the ELSE (if
any) otherwise.
NOTE: This tag does not nest with other [if-loop-data ...] tags.
[if-loop-field field] IF [else] ELSE [/else][/if-loop-field]
Outputs the IF if the field in the products table is non-empty, and
the ELSE (if any) otherwise.
NOTE: This tag does not nest with other [if-loop-field ...] tags.
-----snip------
make this, what you want. Before you use any if constructions, check
your codes, whether you get any values. After that, try to use the if
conditions. If there are no success, try
[set name="dummy" interpolate=1][box-code][/set]
then
[if scratch dummy =~ /Categories/]
or
[if scratch dummy eq Categories]
I hope, this helps you!
Regards,
Joachim
--
-------------Hans-Joachim Leidinger---------------------
-
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