# Array related

**URL:** <https://forum.uipath.com/t/array-related/355600>\
**Category:** Studio\
**Tags:** system, activities\
**Created:** [October 25, 2021, 6:22am UTC](https://forum.uipath.com/t/array-related/355600 "2021-10-25T06:22:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![amol\_pawar](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/amol_pawar/32/256517_2.png) [@amol\_pawar](https://forum.uipath.com/u/amol_pawar)\
**Post date:** [October 25, 2021, 6:22am UTC](https://forum.uipath.com/t/array-related/355600/1 "2021-10-25T06:22:56Z")

</div>

i create array of integer.  
in if statement i want to acess array element one by one  
whai is it solution

---

<div class="post-metadata">

**Author:** ![THIRU\_NANI](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/thiru_nani/32/317561_2.png) [@THIRU\_NANI](https://forum.uipath.com/u/THIRU_NANI)\
**Post date:** [October 25, 2021, 6:27am UTC](https://forum.uipath.com/t/array-related/355600/2 "2021-10-25T06:27:13Z")

</div>

Hi! @amol_pawar ,

Array index is always starts from 0.

for example,

if you have an array like this {1,9,12,2,3,0,5}

the array index will follow like this.  
array(0)-1,  
array(1)-9,  
array(2)-12,  
array(3)-2,  
array(4)-3,  
array(5)-0,  
array(6)-5

Regards,  
NaNI

---

<div class="post-metadata">

**Author:** ![amol\_pawar](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/amol_pawar/32/256517_2.png) [@amol\_pawar](https://forum.uipath.com/u/amol_pawar)\
**Post date:** [October 25, 2021, 6:33am UTC](https://forum.uipath.com/t/array-related/355600/3 "2021-10-25T06:33:18Z")

</div>

Initarray(index) it gives compilation error

---

<div class="post-metadata">

**Author:** ![pravin\_calvin](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/pravin_calvin/32/212149_2.png) [@pravin\_calvin](https://forum.uipath.com/u/pravin_calvin)\
**Post date:** [October 25, 2021, 6:38am UTC](https://forum.uipath.com/t/array-related/355600/4 "2021-10-25T06:38:21Z")

</div>

Hi @amol_pawar

If You need to access the value in a Sequence!

Create a Variable arrayInt and assingn {1,9,12,2,3,0,5}

Use for each and change the type to Int

For each item in arrayInt

Print Item it will access it one by one!

Regards

---

<div class="post-metadata">

**Author:** ![amol\_pawar](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/amol_pawar/32/256517_2.png) [@amol\_pawar](https://forum.uipath.com/u/amol_pawar)\
**Post date:** [October 25, 2021, 6:42am UTC](https://forum.uipath.com/t/array-related/355600/5 "2021-10-25T06:42:49Z")

</div>

thank u for ur reply.  
but i want to check maximum value and minimum value in that arry then how fix it

---

<div class="post-metadata">

**Author:** ![Lakshay\_Verma](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/lakshay_verma/32/70705_2.png) [@Lakshay\_Verma](https://forum.uipath.com/u/Lakshay_Verma)\
**Post date:** [October 25, 2021, 6:44am UTC](https://forum.uipath.com/t/array-related/355600/6 "2021-10-25T06:44:05Z")

</div>

Below statement will check all elements of array based on condition

![image](https://global.discourse-cdn.com/uipath/original/4X/0/8/1/0814f69369095d196a130ac4b374459d377b4d69.png)

 ![image](https://global.discourse-cdn.com/uipath/original/4X/5/d/9/5d9d4b51a3a829d75670ecadac8445304e152e3b.png)

![image](https://global.discourse-cdn.com/uipath/original/4X/c/0/c/c0cff9591e1354ff4a25fa9beda0f3299c3ae673.png)

And this will give you max and min

---

<div class="post-metadata">

**Author:** ![lakshman](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/lakshman/32/523490_2.png) [@lakshman](https://forum.uipath.com/u/lakshman)\
**Post date:** [October 25, 2021, 7:10am UTC](https://forum.uipath.com/t/array-related/355600/7 "2021-10-25T07:10:22Z")

</div>

@amol_pawar

> [@amol\_pawar](#):
>
> but i want to check maximum value and minimum value in that arry then how fix it

arrInput = {1,2,3,4,5,6}

Find Min. value = **arrInput.Min**  
Find Max. value = **arrInput.Max**
