cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Can I do a range?

Hi guys

 

I'm trying to have this label be visible but only for values of another label if they are between 0 and 50. 

 

Here's the coding that I have but I can't figure out how to make it disappear once it hits 0. 

If(Value(Lable1.Text)<=50, true, false) 

 

The coding that I have works until my countdown of hours hits 0. 

 

Any ideas? 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Can I do a range?

@smartin 

If I understand what you're asking for, you want to have the label be visible if the number is 0 or greater and 50 or less.

If so, then your visible Formula will be this:

((Value(Label1.Text)>=0) && (Value(Label1.Text)<=50))

If the number is less than 0 or greater than 50, it will not be visible.

 

I hope that helps you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

2 REPLIES 2
Highlighted
Power Apps
Power Apps

Re: Can I do a range?

Hi @smartin ,

You can use the And operator to have the two conditions for the visibility:

If(0 < Value(Label1.Text) And Value(Lable1.Text) <= 50, true, false)

Or simplified as

0 < Value(Label1.Text) And Value(Lable1.Text) <= 50

Hope this helps!

Highlighted
Super User
Super User

Re: Can I do a range?

@smartin 

If I understand what you're asking for, you want to have the label be visible if the number is 0 or greater and 50 or less.

If so, then your visible Formula will be this:

((Value(Label1.Text)>=0) && (Value(Label1.Text)<=50))

If the number is less than 0 or greater than 50, it will not be visible.

 

I hope that helps you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (11,341)