Fine
So suppose if we are getting the text like this alone
str_input = “CustomerName
Gurgaon
HSN Code
Rental”
So now use a assign activity like this list_string = str_input.Split(Environment.NewLine.ToArray()).ToList()
Where list_string is a variable of type System.Collections.Generic.List(of string) defined in the variable panel with default type as New list(of string)
So use a IF condition like this list_string.Count.Equals(4)
If true it will go to THEN part were use a assign like this Str_output = list_string(1).ToString
If the above condition fails it will go to ELSE part where we can use a assign activity Str_output = String.Empty
Yah that’s possible
But we need to mention the index and concatenate them
Like
array(0).ToString+array(1).ToString
array(2).ToStting
array(3).ToString
And in your case ensure that the string format is same else we will be facing issue while using this split method like though it splits it won’t give us the required output
Kindly try once and let know for any queries or clarification
Cheers @Kabeer