{if} statements

Comments

3 comments

  • Avatar
    Chris Bohnert

    Is it possible to use an IF statement with an external variable? How would the syntax look for that? For example: 

    {if $extVars.order.Totals.CreditsUsed}
     ${$extVars.order.Totals.CreditsUsed|string_format:"%.2f"}
    {/if}

  • Avatar
    Brian Lange

    Hi Chris, 

    Yes, it is possible to use an IF statement with an external variable. The syntax is. 

    {if $extVars.variableName == 'value'}

    {/if} 

    If there is a specific use you are trying to solve please consider filing a support ticket. 

     

  • Avatar
    Chris Bohnert

    Thanks Brian!

Please sign in to leave a comment.