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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / do nothing in if function
Power Automate
Unanswered

do nothing in if function

(2) ShareShare
ReportReport
Posted on by 72

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

Categories:
I have the same question (0)
  • NPrice99 Profile Picture
    1,302 on at

    Hi 

     

    Just put false in the false part of the If STatement

     

    Regards

     

    Nigel

  • Verified answer
    v-yuazh-msft Profile Picture
    on at

    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

  • petergriac Profile Picture
    72 on at

    Thanks,

    This works.

     

    Regards,

    Peter

  • BSacchini Profile Picture
    6 on at

    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 Profile Picture
    13,073 on at

    Fix the dependent actions, I guess?

  • kgreen8790 Profile Picture
    189 on at

    How can we use an expression to signify "do nothing"? I can't use the gui condition connector due to checking the condition inside of a column for "update a row in a table connector"

  • VictorIvanidze Profile Picture
    13,073 on at

    Hi @kgreen8790,

    could you please rephrase? 

  • kgreen8790 Profile Picture
    189 on at

    In the originally accepted solution the author stated to leave the "No" window blank to solve the "do nothing if false". Due to my use case I can not use the "Condition" connector in the power automate GUI. I'm wondering if there is a way to achieve the same result with a written expression. Currently if I leave the third parameter blank on my written if statement expression I get an error saying "if requires 3 parameters, only received 2". I've tried if(equals(item(), 'X'), 'Do X', false) but in this instancte the flow actually places the word false on my spreadsheet (which is what I'm using the condition for). If I try if(equals(item(), 'X'), 'Do X',) I get the beforementioned "requires 3 parameters only received 2" error. So, in closing is there a way to express an written if statement where the false comparative simply takes no action? 

  • VictorIvanidze Profile Picture
    13,073 on at

    Try to use something like tis:

    if(equals(item(), 'X'), 'Do X', null)

  • J Morris Profile Picture
    28 on at

    I am having the same issue. I have tried the following expressions with a excel data source and writing to D365. Both still clear out the data in D365. I don't want to create multiple conditions in the flow to accomplish this as I have a lot of fields that needs this logic. I have used this same expression with a Microsoft Form data source it is still works. But when I switched to an excel data source it no longer works.

    if(empty(outputs('ListRows')?['Main Phone']),' ' , outputs('ListRows')?['Main Phone'])

    if(empty(outputs('ListRows')?['Main Phone']),null , outputs('ListRows')?['Main Phone'])
     
    Jmorris0923_0-1663258818875.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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard