liquid desperately needs a "previous widget" reference

aaron_cl
aaron_cl ✭✭✭

If a process flow has to be consolidated after a split, it ends up as a massive headache.

For example, in order to make something like this function:

you'd need to maintain a complicated liquid expression that looks something like this:

{{widgets.ap_1.memory.outcome 
| default: widgets.ap_2.memory.outcome 
| default: widgets.ap_3.memory.outcome}}

and keep the expression statement updated for any changes to the referenced widgets.

However, if we had a reserved variable that would always reference the previous widget, the expression could be set as:

{{previous.memory.outcome}}

and would require no further maintenance.

I've found nothing like this in the documentation, am I missing something or is this a valid request?

Comments

If this is an emergency, please contact Twilio Support. This is not an official Support channel. https://support.twilio.com/
Have an urgent question?
Please contact Twilio Support. This is not an official Support channel.
Contact Support