welcome to uipath community
if this string is assigned to a variable of type string named str_input
arr_lines = str_input.Split(Environment.Newline.ToArray(),stringsplitoptions.RemoveEmptyEntries)
where arr_lines is a variable of type array of string
–now use a FOR EACH activity and pass the above variable arr_lines as input and change the type argument as string in the property panel
–inside the loop use a IF condition like this
if true it will go to THEN part where we can use a assign activity
str_output = arr_lines(arr_lines.Tolist().IndexOf(item)-1).ToString
and next to this assign activity inside the then part use a BREAK activity
now str_output variable will be holding your value
I have applied your condition but its not displaying any thing
Topic header indicates that you are dealing with a string list. Is that rigt or are you dealing with a string containing linebreaks and text?
Names are recognized on following status text e.g last seen, online. Any other status to handle?
With your input we can help you quickly to get it solved. Thanks for answering the questions
from the above image i need to get only name’s
Pefect, I got better understanding. But please answer: currently textvar is of which type?
Text variable is of type string
Let us know your feedback and mark solving post as solution. So others can benefit from it
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.