How to change the value of a variable?

Hello,

I would like to create like an index. So, from the list :

 Be Bop a Lulla
 Bohemian Rhapsody
 Hotel California

I try to get :

 B
 Be Bop a Lulla
 Bohemian Rhapsody
 H
 Hotel California

For that, I need to store the initial letter of the previous loop (in the “Previous initial” variable). Hereafter is my scenario :


But, in the second Text Parser, the “Previous initial” variable has always the same value for all loops.

Can somebody help me ?

Hi @axel_imageriemed

Add Array aggregator and Set Variable Module


In Array aggregator module add this formula in Group by := {{substring(2.__IMTMATCH__; 0; 1)}}

In Set variable add this formula in variable value := {{19.__IMTKEY__}}{{newline}}{{map(19.array; “IMTMATCH”)}}

3 Likes

Thank you very much Brainstream, it works perfectly.

3 Likes