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 / A better way to nested...
Power Automate
Answered

A better way to nested conditions?

(0) ShareShare
ReportReport
Posted on by 402

This is not an issue I am having, but rather my own knowledge to see if this is a best practice, or if there is something better to use?  I have an incoming payment advice document with data.  In that data is a TotalCost value.  Based on that value, I need to branch to a different approval process (and authority).  As I am buidling this out I have used conditional options to branch.  Would this be the best way, or might there be another? Thanks

iskguy_0-1700495946619.png

 

Categories:
  • Verified answer
    Chriddle Profile Picture
    8,729 Super User 2026 Season 2 on at

    I think your structure is OK.

     

    Another approach would be something with Switch

    I would prefer this, if the actions are basically the same,, only with different values.

    Then you have them neatly side by side.

     

    Chriddle_0-1700497740032.png

    With Switch ON:

    if(
    	less(
    		outputs('Compose'),
    		500
    	),
    	'TotalCost less than 500',
    	if(
    		less(
    			outputs('Compose'),
    			1000
    		),
    		'TotalCost between 500 and 999.99',
    		if(
    			less(
    				outputs('Compose'),
    				5000
    			),
    			'TotalCost between 1000 and 4999.99',
    			'TotalCost 5000 or more'
    		)
    	)
    )

     

     

    And if you don't like "wide" flows:

    Chriddle_1-1700498151350.png

     

  • iskguy Profile Picture
    402 on at

    Thanks Chriddle for the other options.  I was also thinking of using Switch too.  I appreciate your response.  Have a great day

  • MShelnutt Profile Picture
    381 on at

    @Chriddle how do you get the Cases to populate in the flow?-

    MShelnutt_0-1709826753339.png

     

  • Chriddle Profile Picture
    8,729 Super User 2026 Season 2 on at

    Click the +

    Chriddle_0-1709827749758.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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard