You can take a look at this related thread https://experienceleaguecommunities.adobe.com/t5/journey-optimizer-questions/get-last-item-of-a-list-while-doing-personalization-in-ajo/td-p/649202 {% let demo = "1,903~19.03" %}
Second part
{% let idx = indexOf(demo,"~" ) + 1 %}
{%= substr(demo, idx, len...