Akopia Akopia Services

[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 Hans-Joachim Leidinger <jojo@buchonline.net>     ******

adam@opusvl.com schrieb:
> 
> ******    message to minivend-users from adam@opusvl.com     ******
> 
> Hi to the list again...
> I have scratch my head over this and feeling kind of stomped :(
> 
> exsample of what I am trying to do
> 
> --\/---snipet----------
> 
> [value name="dynamic_flag" set="3"]
> [value name="dynamic_var-[value dynamic_flag]" set="some text"]
> 
> <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

Try

[seti testdynamic][value name="dynamic_var-[value dynamic_flag]"
set="some text"][/seti]
[if scratch testdynamic]
	Hello MiniVend World!
[/if]

Joachim .... a [seti] fan! ;-)

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


Search for: Match: Format: Sort by: