How to check empty array variable in uipath

To check empty array
Consider my variable is ex. Arrayvar={}
How to check this Arrayvar is empty in if condition?
Please help me out to find solution

Hi @brindhaS

Hope this might be helpful to you.

Scenario 1:
Declare and array of string as empty or not
Scenario 2:
Add If condition activity to check the length of the array if length = 0 then it means it was empty otherwise empty.

cheers :smiley:

happy learning :smiley:


Personally, I like this way if I know that the array might not be initialized:

This way it will return True or False even if the array is Null.


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