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 / Another problem with i...
Power Automate
Answered

Another problem with if statement with logical operators

(0) ShareShare
ReportReport
Posted on by 431

I posted a topic yesterday about using the syntax for an if statement ub=sing Contains and a logical operator.

 

Now I have a similar problem but am getting a syntax error

 

My first operand is 

%DoesNotContain(SelectedDocTitle[0], 'original petition', True) OR DoesNotContain(SelectedDocTitle[0], 'exhibit', True)%

I don't know the proper syntax for Does Not Contain

If that is not possible I guess I can use the Contains approach and reverse my loop logic

 

 

Steve48_0-1694004925844.png

 

I have the same question (0)
  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Try using NotContains instead of DoesNotContain.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Gidi Profile Picture
    601 on at

    If you are unsure about the syntax you can define it in an if statement and copy it into your clipboard. The text will show it then. 

     

    [List of available 8 functions]

    • Contains(VAR, 'KEY', False)
    • NotContains(VAR, 'KEY', False)
    • IsEmpty(VAR)
    • IsNotEmpty(VAR)
    • StartsWith(VAR, 'KEY', False)
    • NotStartsWith(VAR, 'KEY', False)
    • EndsWith(VAR, 'KEY', False)
    • NotEndsWith(VAR, 'KEY', False)

    The third parameter is for Ignore Case (false = “ Case sensitive“)

     

  • Steve48 Profile Picture
    431 on at

    Gidi. Thank you for the list of functions. I don't understand what you mean by copying to clipboard

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    What Gidi meant is that if you built a simple If statement using the operand you want, and copied the entire action to a text editor, you would see the syntax and would be able to mimick that.

    -------------------------------------------------------------------------

    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

     

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 282 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 159 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 146 Super User 2026 Season 2

Last 30 days Overall leaderboard