Announcement

Collapse
No announcement yet.

Can I use mvt:assign to evaluate a Miva conditional and create a variable?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can I use mvt:assign to evaluate a Miva conditional and create a variable?

    Hello forum:
    I am trying to create a Miva variable from this statement in a template email:
    <mvt:if expr="l.settings:order:net_capt NE l.settings:order:total">
    &nbsp;
    <mvt:else>
    <span style="color:red; font-size:36px; font-weight:bold;">PAID</span>
    </mvt:if>
    I tried putting it into a mvt:assign statement like this:
    <mvt:assign name="paid" value=" <mvt:if expr="l.settings:order:net_capt NE l.settings:order:total">
    &nbsp;
    <mvt:else>
    <span style="color:red; font-size:36px; font-weight:bold;">PAID</span>
    </mvt:if>
    " />
    The variable must include the inline CSS.

    That doesn't work. Is there a way to create the "paid" variable from this conditional using Miva template code?
    Thanks, Larry
    Last edited by wajake41; 09-12-15, 10:20 AM.
    Larry
    Luce Kanun Web Design
    www.facebook.com/wajake41
    www.plus.google.com/116415026668025242914/posts?hl=en



    #2
    Re: Can I use mvt:assign to evaluate a Miva conditional and create a variable?

    Never mind, not an issue anymore.
    Larry
    Luce Kanun Web Design
    www.facebook.com/wajake41
    www.plus.google.com/116415026668025242914/posts?hl=en


    Comment

    Working...
    X