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 / if else doesnt work
Power Apps
Unanswered

if else doesnt work

(2) ShareShare
ReportReport
Posted on by 6
Hello
I tried to enter a formula but it doesn't work. I don't get the error either, just a red border on the right. 
I can't save. 
The code is 
If(T1 > 0, 200, 2000)
T1 is a number field.
What am I doing wrong?
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,299 Most Valuable Professional on at
    If you are referring to the field from another control in a Form or Gallery you would need
    If(
       ThisItem.T1 > 0, 
       200, 
       2000
    )
    If T1 is a Text control or Label you would need
    If(
       Value(T1.Text) > 0,
       200,
       2000
    )
    So where exactly are you using this formula?
     
    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee
  • Ravindra Jadhav Profile Picture
    342 Moderator on at
    I Am Assuming T1 is Variables And Having Value In that
    If(
       Value(T1) > 0, 
       200, 
       2000
    )
     
  • timl Profile Picture
    37,283 Super User 2026 Season 2 on at
    In addition to what Warren says about checking the record references, another thing to check is your language. 
     
    If you're using Power Apps using a Latin/non-English language, you'll need to substitute the commas with semi-colons.
     
    If(
       ThisItem.T1 > 0; 
       200; 
       2000
    )
     
    If that doesn't help, I'd suggest that you post a screenshot of your error.

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard