[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] dynamic variable names and ifs enigma
****** message to minivend-users from cfm@maine.com ******
On Fri, Jul 28, 2000 at 01:01:08PM +0100, adam@opusvl.com wrote:
> ****** message to minivend-users from adam@opusvl.com ******
>
> --\/---snipet----------
>
>
> [value name="dynamic_flag" set="3"]
> [value name="dynamic_var-[value dynamic_flag]" set="some text"]
You can try:
[value name="dynamic_var-[[value dynamic_flag]]" set="some text"]
That's maybe a minivend 2ism ;^) At any rate, minivend is
almost certinly not interpolating [value dynamic_flag] **before**
the other [values]. I'd do it in perl, maybe someone else can
point out how in tags.
Minivend tags are not proceedural.
cfm
>
>
> <br>
> <br>
> value name="dynamic_var-[value dynamic_flag]" : [value
> name="dynamic_var-[value dynamic_flag]"]
>
> [comment]
> so far so good, displays good and correct
> [/comment]
>
> [if value name="dynamic_var-[value dynamic_flag]"]
> value exists
> [else]
> value does not exist
> [/else]
> [/if]
>
> --/\---snipet----------
>
>
> but this is where is fails
>
> it displays that the value does not exist :(
>
>
> tried some other variations on the if all fail or not correct
>
>
> [if term="[value name="dynamic_var-[value dynamic_flag]"]" ]
> --- fails on three levels in :( -- "]"] ---
>
>
> however
>
> [if !value name="dynamic_var-[value dynamic_flag]"]
> returns only if there is a value
> [/if]
>
>
> returns
> "] returns only if there is a value
>
> works, which is the opposite to what I would expect it to do.
>
>
>
>
> Any help or alternatives, would be greatly appriecated
> becuase I feel that dynamic variable names gives MV some serious power
>
>
> --
> <really pointless tag that does nothing>
> hmmmm
> </really pointless tag that does nothing>
> -
> 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
--
Christopher F. Miller, Publisher cfm@maine.com
MaineStreet Communications, Inc 208 Portland Road, Gray, ME 04039
1.207.657.5078 http://www.maine.com/
Database publishing, e-commerce, office/internet integration, Debian linux.
-
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