[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Macro Expansion Question
****** message to minivend-users from Stefan Hornburg <racke@linuxia.de> ******
OTR Comm <otrcomm@wildapache.net> writes:
> ****** message to minivend-users from OTR Comm <otrcomm@wildapache.net> ******
>
> Hello all,
>
> Can someone explain the order of how this particular statement is
> expanded/executed?
>
> [if data [value [mv_search_file]]::image::[item-field sku]]
>
> What I am trying to do is dynamically set the database field in the
> statement of form:
>
> data database::field::key
>
> but the [value [mv_search_file]] in my statement does not seem to expand
> in the proper sequence.
>
> I can put [value [mv_search_file]] someplace else in my code to see if
> it expands properly, and it does, but it does not seem to expand
> properly in the 'if' statement above.
>
> I have multiple product files and need to do some conditional processing
> based on which product file I am addressing.
>
> Any help here would be appreciated!
Read thoroughly the if documentation (note that the difference between
positional parameters and named parameters). If it gets too complicated,
use embedded Perl.
Ciao
Racke
--
LinuXia Systems && Cobolt NetServices, eCommerce and more
Shop- und Datenbanklösungen mit MiniVend, Firewalls auf Debian-Basis
http://www.linuxia.de - http://www.cobolt.net
--> Junior Officer of the MiniVend/Interchange Bug Patrol <---
-
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