How do i assign current index item to a string

hi,

i want to iterate through an array of dates
i am doing a for each item in array
then i have an if statement within the body and a condition, when condition is matched i want to assign that current item to a string that i can use later on within my process?

Hi,

You can use convert. toString(Arrayvar) in assign activity inside if block

hi where do i give the new a string a name?

@J_Swali
define a variable e.g. DateStrings as a DataType of list(of String) and init it on under the default value with new List(Of String)

inside the if block, when the condition is met it can be added to the string list with an add to collection activity

2 Likes

what exact type of list does it have to be? list of string is not working?

got it working! thanks man.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.