J_Swali
(J Swali)
August 4, 2020, 10:14am
1
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?
Atul_Rai
(Atul Rai)
August 4, 2020, 10:23am
2
Hi,
You can use convert. toString(Arrayvar) in assign activity inside if block
J_Swali
(J Swali)
August 4, 2020, 10:24am
3
hi where do i give the new a string a name?
ppr
(Peter Preuss)
August 4, 2020, 10:32am
4
@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
J_Swali
(J Swali)
August 4, 2020, 10:39am
5
what exact type of list does it have to be? list of string is not working?
J_Swali
(J Swali)
August 4, 2020, 10:42am
6
got it working! thanks man.
system
(system)
Closed
August 7, 2020, 10:42am
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.