PDA

View Full Version : Old timers MivaScript


RayYates
08-16-08, 09:00 AM
Can one of you "old timers" translate this?

I don't get this old style expression.
<MvIF EXPR="{g.&[l.itemname]}">
<MvASSIGN NAME="g.&[l.itemname]" VALUE="{g.&[l.itemname] $ '&' $ l.name $ ':' $ l.value}">
</MvIF>

Is this equal to
<MvIF EXPR="{ miva_variable_value('g.' $ l.itemname ) }">
<MvASSIGN NAME="{ 'g.' & l.itemname }" VALUE="{ miva_variable_value('g.' $ l.itemname) $ '&' $ l.name $ ':' $ l.value }">
</MvIF>

mvmarkus
08-16-08, 09:51 AM
Can one of you "old timers" translate this?

I don't get this old style expression.
<MvIF EXPR="{g.&[l.itemname]}">
<MvASSIGN NAME="g.&[l.itemname]" VALUE="{g.&[l.itemname] $ '&' $ l.name $ ':' $ l.value}">
</MvIF>

Is this equal to
<MvIF EXPR="{ miva_variable_value('g.' $ l.itemname ) }">
<MvASSIGN NAME="{ 'g.' & l.itemname }" VALUE="{ miva_variable_value('g.' $ l.itemname) $ '&' $ l.name $ ':' $ l.value }">
</MvIF>

Hi Ray,

Almost.... Try this:

<MvASSIGN NAME="{ 'g.' $ l.itemname }" VALUE="{ miva_variable_value('g.' $ l.itemname) $ '&' $ l.name $ ':' $ l.value }">

(it's just a little type in the assignment - a $-operator instead of the & in the variable name.)

Markus

RayYates
08-16-08, 07:27 PM
ah ha. This was driving me krazzy.
Thx