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 / Multiple IF statements
Power Apps
Answered

Multiple IF statements

(0) ShareShare
ReportReport
Posted on by 93

Hi,

 

I have an IF statement working fine which is ...

 

If(Value(Label1.Text) <= 100, "100", Value(Label1.Text))

 

I now want to add to this so that if Label1's value is greater than or equal to 1000, it shows 1000, else it shows the value of Label1.Text

 

Thanks

Phil

Categories:
I have the same question (0)
  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @PhilGlew ,

     

    Based on your requirement please check if below formula will work in your case or not ? 

     

    If(Value(Label1.Text) <= 100,"100",(Value(Label1.Text)) >= 1000,"1000",Value(Label1.Text))

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • PhilGlew Profile Picture
    93 on at

    Thanks, that's great.

     

    One last thing. I have a button which, when the user clicks it, shows Label1 - what Visible properties do I need to input into Button1?

     

    Thanks

    Phil

  • Verified answer
    PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @PhilGlew ,

     

    If label1 will be visible on click of the button and you want to manage the visibility of the label than add below code.

     

    Onselect Button : Set(varShowLabel,true)

    On Label visibility : varShowLabel 

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard