Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn Microsoft Power Apps

You're reading from   Learn Microsoft Power Apps The definitive handbook for building solutions with Power Apps to solve your business needs

Arrow left icon
Product type Paperback
Published in Sep 2023
Publisher Packt
ISBN-13 9781801070645
Length 702 pages
Edition 2nd Edition
Arrow right icon
Authors (2):
Arrow left icon
Elisa Bárcena Martín Elisa Bárcena Martín
Author Profile Icon Elisa Bárcena Martín
Elisa Bárcena Martín
Matthew Weston Matthew Weston
Author Profile Icon Matthew Weston
Matthew Weston
Arrow right icon
View More author details
Toc

Table of Contents (27) Chapters Close

Preface 1. Introducing Power Apps FREE CHAPTER 2. Creating Your First Canvas Power App 3. Creating Apps in SharePoint 4. Publishing and Leveraging in Power Apps 5. Exploring Controls 6. Exploring Formulas 7. Exploring Reusable Controls 8. Working with Data 9. Introducing Connectors 10. Using GPS in Power Apps 11. Working with Images and Barcodes 12. Securing Your Power Apps 13. Working Offline 14. Using Power Automate with Power Apps 15. Using Azure with Power Apps 16. Visualizing Data 17. Introducing Artificial Intelligence 18. Introducing Microsoft Dataverse 19. Introducing Model-Driven Apps 20. Creating Model-Driven Apps 21. Exploring Environments and Data Policies 22. Introducing the Future of Power Apps 23. Good Practices for Creating Power Apps 24. Other Books You May Enjoy
25. Index
Appendix

Using conditions

Conditions are ways of carrying out a calculation to provide a true or false outcome. They are used to provide branches in logic, so if one condition is met, then action A will ensue. If not, then something else will happen.

If

The most common and useful condition is the If function, which takes in three arguments:

  • The test
  • What to do if the test returns true
  • What to do if the test returns false

In the following example, you will see that we can also combine the outputs of other functions into our condition to return a different output:

If(Text(Today(),"dddd") = "Saturday","Weekend :)","Weekday :(")
Graphical user interface, text, application  Description automatically generated

Figure 6.17: An example of an If function being used to change the output of a label

There will be occasions where your condition will depend on multiple inputs being compared to provide the evaluation. Multiple conditions will always be either AND or OR in nature and can...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image