Forum Academy Marketplace Showcase Pricing Features

Split text list and plus item duplicate

Hi

I have a custom state defined as text list which contains numbers ( and there are duplicates) Example

Original list
76,300,78,400,76,400,80,300

Target List 1
76,78,76,80

Target List 2
300,400,400,300

I want to split the original list into 2 text lists (stored as separate states ) … one containing the odd indexed numbers from the original list and the other the even indexed numbers

I can use an iterator and check the index using modula on the original list but the : plus item on the target lists doesn’t accept duplicates - is there a way to add duplicates on a text list?

Thank you for your help

This topic was automatically closed after 70 days. New replies are no longer allowed.