For Loop With Condition

loops
rpa

#1

How to handle following scenario with RPA Express ?

List = [aa,bc,ed,cc-1,eg]
List2 = [,]
for(i=1;i<10;i++){
  if(List[i]=='cc-1'){
	List2 == split('-');
   }
}

#2

@Lasitha_Wijenayake,

  1. Create Recorder variables of List type and store the values in it.
  2. use for-each to run through each item in the list variable.
  3. under for-each use if condition to check for specific item in list like here ‘cc-1’
  4. under if use the text split function to split the item and store it in new recorder variable of list type.

its quite simple.