cancel
Showing results for
Did you mean:
Level: Powered On

## 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
Super User

## Re: Can I do a range?

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.
2 REPLIES 2
PowerApps Staff

## 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!

Super User

## Re: Can I do a range?

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.

Announcements

#### PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

#### Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

#### Watch Sessions On Demand!

Continue your learning in our online communities.

#### Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

#### Power Platform World Tour

Coming to a city near you

#### PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

#### Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

#### Power Platform Summit North America

Register by September 5 to save \$200

Top Kudoed Authors
Users Online
Currently online: 382 members 4,818 guests
Recent signins: