Hi @Christof_Strack ,
After you extract the value of “resourceValue” (by using Extract Property block), to extract elements of sequence you need to create a custom block.
If you want to achieve it using standard blocks, you can use Expression block but it’s difficult parsing and extracting elements as there is no decent way to achieve it. Expression block does not support sequence and squqare bracket ([ ])operators. Easiest would be to write a custom block.
If you still want to extract index values using Expression block, it is complicated(and ugly). You can try this way.
Ex:
For index 0: **input1.substring(1.floor(), input1.findFrom(",", 0.floor()))**
For index 1: **input1.substring(input1.findFrom(",", 0.floor())+1.floor(), input1.findFrom(",", input1.findFrom(",", 0.floor())+1.floor()))**
For index 2: **input1.substring(input1.findFrom(",", input1.findFrom(",", 0.floor())+1.floor())+1.floor(), input1.findFrom(",", input1.findFrom(",", input1.findFrom(",",0.floor())+1.floor())+1.floor()))**
substring and findFrom takes integer parameter(see string). But in analytics builder, numeric literals are treated as float values so we need to call .floor() or other comparable methods to convert them to int before passing them to findFrom or substring action.
It becomes complicated , if the sequence length increases and if resourceValue is empty.
So, suggest to use custom block instead of expression block.
Best Regards,
Sasmita