Announcements
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,
hey there @Axal you can go with both. If(var,a,b) or If(var=true,a,b) depend on your preference.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 393 Super User 2026 Season 2
Mohsin Ali 328
WarrenBelz 278 Most Valuable Professional