cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
petergriac
Helper II
Helper II

do nothing in if function

Hi all,

Does anyone know how to write 'do nothing' in if statement when the condition is not true?

example if ( condition, 'do an action', 'do nothing')

 

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
v-yuazh-msft
Community Support
Community Support

Hi @petergriac,

 

If you want to do nothing when the condition is not true, you just need to leave the If no branch of the Condition blank, do not add any actions in it.

And you could add actions that you want to to do in the If yes branch of the Condition.

 

Best regards,

Alice

View solution in original post

5 REPLIES 5
NigelP
Kudo Kingpin
Kudo Kingpin

Hi 

 

Just put false in the false part of the If STatement

 

Regards

 

Nigel

v-yuazh-msft
Community Support
Community Support

Hi @petergriac,

 

If you want to do nothing when the condition is not true, you just need to leave the If no branch of the Condition blank, do not add any actions in it.

And you could add actions that you want to to do in the If yes branch of the Condition.

 

Best regards,

Alice

Thanks,

This works.

 

Regards,

Peter

In my case this does not work. It throws my an error 

 
"ActionFailed. An action failed. No dependent actions succeeded" 
 
Any ideas how to work around this error?
VictorIvanidze
Community Champion
Community Champion

Fix the dependent actions, I guess?

--------------------------------------------------------------------------------------
Contact me if you are interested in custom Power Automate development.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (1,966)