How to split a list into two parts?

Hi,
I want to divide a list into two parts and want to store into two different list variable.

Is there any rule for splitting the List, i.e. if an element meets a certain condition it should be in one list, if it is doesn’t - in another?
Or do you just need to split the list in 2?

Thanks for reply, Only need to split a list into 2.

I think the easiest way will be to use 2 custom scripts like this

  • calculate the number of elements in the list
  • divide the result by 2 to define the last element in the 1st list
  • add 1 to it to define the 1st elements in the 2nd list

then you can define the lists using such custom actions


Hope it helps!

Here is the recording
sublist.zip (800 Bytes)

2 Likes