[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] [if] tag question
****** 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
Parrett Internet Technologies
----- Original Message -----
From: Gideon van Gelder <gideon@swingmaster.nl>
To: <minivend-users@minivend.com>
Sent: Wednesday, May 24, 2000 4:40 PM
Subject: 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
-
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