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 PowerApps

You're reading from   Learn Microsoft PowerApps Build customized business applications without writing any code

Arrow left icon
Product type Paperback
Published in Nov 2019
Publisher Packt
ISBN-13 9781789805826
Length 560 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Matthew Weston Matthew Weston
Author Profile Icon Matthew Weston
Matthew Weston
Arrow right icon
View More author details
Toc

Table of Contents (25) Chapters Close

Preface 1. Section 1: Getting Started with PowerApps FREE CHAPTER
2. Introducing PowerApps 3. Creating Your First Canvas PowerApp 4. Creating Apps from SharePoint 5. Publishing and Leveraging PowerApps 6. Section 2: Developing Your PowerApp
7. Exploring Controls 8. Exploring Formulas 9. Working with Data 10. Introducing Connectors 11. Section 3: Extending the Capabilities of Your PowerApp
12. Using GPS in PowerApps 13. Working with Images and Barcodes 14. Securing Your PowerApps 15. Working Offline 16. Using Power Automate with PowerApps 17. Using Azure with PowerApps 18. Section 4: Working with Model-Driven Apps
19. Introducing Model-Driven Apps 20. Creating Model-Driven Apps 21. Section 5: Governing PowerApps
22. Exploring Environments within Our Tenancy 23. Assessments 24. Other Books You May Enjoy

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 :(")
Figure 6.16: 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 be defined using this syntax:

  • AND / &&
  • OR / ||

In...

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