Native support for ternary function within Responsys RPL

Within RPL values, it would be an immense advantage to native support ternary expressions, so instead of having to do this:

<#assign multiplier = 1>
<#assign amount = 24.99>
<#if transactionType == "loss">
  <#assign multiplier = -1>
<#assign amount = amount * multiplier>

…one could just write this:

<#assign multiplier = transactionType == "loss" ? -1 : 1>
<#assign amount = 24.99 * multiplier>
1 votes

Active · Last Updated


  • Sachin Jain-Oracle
    Sachin Jain-Oracle Mr Posts: 161 Employee

    Hi @Brandon McConnell - PRB

    Thank you for submitting your idea. We are very interested in your thoughts on any features you would like to see in our product.

    Product management team have reviewed the idea and suggested please raise a support ticket and they can evaluate these requests via the normal process.

    Again, we thank you for your time and welcome any suggestions.


    Sachin Jain

    Community Manager

    Stay Safe | Stay Healthy

    Thanks, and Best Regards

    Sachin Jain | CX Community Manager