Akopia Akopia Services

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

Re: [mv] [if] tag question



******    message to minivend-users from "Gideon van Gelder" <gideon@swingmaster.nl>     ******

> List:
>
> I have a question regarding the [if] tag in Minivend 4.04.
>
> I have a loop stepping through a file, and I would like to do a
conditional
> on a value in the current iteration.  The loop variable I want to check is
> named "box-code".  If I just put [box-code] in the file and view it, it
> displays the value correctly.  However, when I try to use [if] to find out
> if the variable is equal to the string 'Categories', nothing happens.
I've
> tried ever variant of the if statement that I can think of, eg: [if value
> box-code="Categories"], [if box-code="Categories"], [if
> [box-code]="Categories"], [if box-code =~ m/Categories/], et al.  I would
> appreciate any help -- the documents aren't helping me much.
>
> Thank you in advance,
>
> Brian Hanley
> Parrett Internet Technologies

Dear Brian,

I answered this a couple of weeks ago. (you know you can search this list
for previous answered messages concerning any topic and it's in the docs
too, of course)

the answer is [if type=value term="box-code" op="=~" compare="Categories"]

I hope this helps,

-Gideon




-
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: