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 Apps / If Statement strange s...
Power Apps
Answered

If Statement strange syntax

(0) ShareShare
ReportReport
Posted on by 259

Hi Guys.

Very simple question.

Why does this work? (image bellow)

 

1.1.PNG

And this doesnt? (image bellow)

1.2.PNG

 

Is there any error on the syntax or Its just not acceptable?

 

Thanks in advance

Categories:
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @JoaoSantos489 
    Leave out the "," after "22" and  change the "And" to "OR" to find numbers Less than 22 or greater than 25, Your statement is illogical as a number cannot be less than 22 AND greater than 25.

  • JoaoSantos489 Profile Picture
    259 on at

    Thanks it Works!

    I leave here the correct syntax:

     

    If(Value(Total_Dias.Text) <22 Or Value(Total_Dias.Text) >25;
    Notify("Error";NotificationType.Error;4000);
    Notify( "Sucess"; NotificationType.Success; 4000 ))

     

    PS: It as to be "Or" not "OR" 

     

     

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 Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard