web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to find out if an ...
Power Automate
Answered

How to find out if an array is empty (PAD)

(0) ShareShare
ReportReport
Posted on by 83

Plaese tell me How to find out if an array is empty.

 

I'm  thinking of using the empty function.

but it doesnt work.

 

 

SET NewVar TO ['a', 'b']
Variables.ClearList List: NewVar ClearedList=> NewVar
IF $'''empty(\'%NewVar%\')''' = $'''false''' THEN
 Display.ShowMessageDialog.ShowMessage Title: $'''its empty''' Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: False ButtonPressed=> ButtonPressed
END

 

 

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    @dominono9 , in the Display Message box when you select the List variable it will give you the .Count property. You can make use of that. It will return 0 if the List has no values.

     

    VJR_0-1658210072188.png

     

  • Verified answer
    Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    I am not sure what you mean by "the empty function" but this definitely works:

     

    SET NewVar TO ['a', 'b']
    Variables.ClearList List: NewVar
    IF IsEmpty(NewVar) THEN
    Display.ShowMessageDialog.ShowMessage Title: $'''its empty''' Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: False ButtonPressed=> ButtonPressed
    END

     

    Henrik_M_0-1658229504326.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 233

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 190

Last 30 days Overall leaderboard