I want to know how to use "Each For" activity using array variable

I want to use “Each For” activity using Array variable.
but, i dont know how to assign to array variable.
let me know …plz…

example, something like normal program language.

ITEMS[3] = { “a”, “b”, “c”}

for each ITEM in ITEMS
{
if ITEM equal “Something” {

}

}

@yuppiensimpson

Hope it helps!!

2 Likes

Hi @yuppiensimpson

=> Assign - ITEMS (Array of String) = {“a”,“b”,“c”}
=> Use for each activity to iterate the Array Variables ITEMS.
=> Inside for each use If condition to check the condition.

   - Condition -> CurrentItem.Equals("Matched Value").toString

=> If the condition matches then bot will go to then condition. Inside then condition you can place another activities to proceed further.

Hope it helps!!

1 Like


Happy Automation!

2 Likes

is it studioX ? i think it studio.

2023년 8월 7일 (월) 오후 2:07, Varunraj via UiPath Community Forum <notifications@uipath.discoursemail.com>님이 작성:

1 Like

@yuppiensimpson

In studio or studiox

You can use for each activity and then add the array in the in items fields

Then inside loop use currentitem to get each value

Cheers

1 Like

@yuppiensimpson

Here is the logic for StudioX

Hope it helps!!

1 Like

Thank for your support…great…

1 Like

@yuppiensimpson

Thank You

Happy Automation!!

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