cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
John_Martel
Level: Powered On

What is the equivalent of a C# return statement?

Hello,

 

What is the equivalent of C# return statement in powerapps. I would hate to think that i will need to use a giant If block with a bunch of nested If statements.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: What is the equivalent of a C# return statement?

Hi @John_Martel ,

Currently, within PowerApps, there is no direct function or operator is equal to C# return statement.

 

If you want to detect multiple conditions within PowerApps app, please check and see if the Switch function could achieve your needs:

Switch function

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Super User
Super User

Re: What is the equivalent of a C# return statement?

I am not sure of your use case but you may want to look at the Switch() function to see if that would help.

 

If and Switch functions in PowerApps



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Community Support Team
Community Support Team

Re: What is the equivalent of a C# return statement?

Hi @John_Martel ,

Currently, within PowerApps, there is no direct function or operator is equal to C# return statement.

 

If you want to detect multiple conditions within PowerApps app, please check and see if the Switch function could achieve your needs:

Switch function

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,428)