Sometimes when we work with List/Array, we might want to initialize them.
Let’s see how do do that!!!
Initialize List
my_List = new List(of string)(new string(){“value1″,”value2”})
Initialize Array
my_Array = new string(){“value1″,”value2”}
Note:
1.Create a List/Array with your required DataType i.e string,Int,boolean….
2.value1,value2… are your values with which you want to initialize the List/Array with
Example
Implementation using UiPath :
List
Array
Hope it has helped you…