miva_variable_value()

 
Returns the value of a variable where expression is the literal name of the variable.
Syntax
miva_variable_value( string )
User Annotations: miva_variable_value
Ray Yates : mivascript at, pcinet d0t com
11/19/2011 15:51 p.m.

Example



    
    
    
    
    



    
<MvASSIGN NAME = "g.lunch" VALUE = "burrito">
<MvEVAL EXPR = "{ miva_variable_value(g.lunch)}"> 
Output: burrito


<MvASSIGN NAME = "l.field_names[1]" VALUE = "firstname">
<MvASSIGN NAME = "l.posn" VALUE = "1">

<MvASSIGN NAME = "g.field" VALUE = "{ 'l.field_names[' $ l.posn $ ']' }">
<MvEVAL EXPR = "{ g.field }"> = <MvEVAL EXPR = "{ miva_variable_value(g.field)}">
Output: l.field_names[1] = firstname