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 condition for boolean
Power Apps
Answered

If condition for boolean

(0) ShareShare
ReportReport
Posted on by 945

Hi guys,

 

In regards of boolean variable (True or False), when we use it in IF statement, should we explicitly say "If (var = true)" or we can just say (If (var) ?

 

Thanks,

 

Categories:
  • Verified answer
    rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hey there @Axal you can go with both. If(var,a,b) or If(var=true,a,b) depend on your preference.

  • GuimauveG Profile Picture
    69 on at

    Hi @Axal ,

     

    As @rubin_boer stated both are correct. Examples in the Power Apps best practice whitepaper would imply that the latter - If(var,a,b) - is better practice. 

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 Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard