Discussions

Add support for ?then built-in in Responsys

Brandon McConnell - PRB
Brandon McConnell - PRB Posts: 4 Green Ribbon
edited Oct 25, 2021 7:20PM in Dream It

The Free Marker Java templating language that Responsys RPL is based/built on supports a built-in for ?then which works similarly to a ternary expression (shorthand if/else).

The ?string built-in works this way already as well, except that the ?string built-in always evaluates to a string, whereas ?then can return any data-type. For example:

// already supported
someCondition?string("whenTrue", "whenFalse") // works fine
someCondition?string(1, 2) // throws an error, requires ?then

// not yet supported
someCondition?then(1, 2) // works fine in Free Marker

I propose adding native support for ?then within Oracle Responsys RPL.

2 votes

Active · Last Updated

Comments

  • Sachin Jain-Oracle
    Sachin Jain-Oracle Mr Posts: 162 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.

    Thank you

    Sachin Jain

    CX Community Manager

    Stay Safe | Stay Healthy

    Thanks, and Best Regards

    Sachin Jain | CX Community Manager