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 statment always go ...
Power Apps
Answered

If statment always go to second condition

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

 I'm learning power apps.

 

I created a table in excel in which I have a username (without a password). I created such a condition:

If(TextInput2.Text in uzytkownicy.Użytkownik;Navigate(dostep);Navigate(odmowa))

 

but it always takes me to the second condition, even though I type the data correctly

Categories:
I have the same question (0)
  • Tqphan87 Profile Picture
    32 on at

    Replace the semicolons with commas.

    If(TextInput2.Text in uzytkownicy.Użytkownik , Navigate(dostep), Navigate(odmowa))

  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @pablik01 Your formular is wrong. Try this instead

     

    If(TextInput2.Text = "uzytkownicy.Użytkownik";Navigate(dostep);Navigate(odmowa))

     

    ...assuming that uzytkownicy.Użytkownik is a String value you want to compare with.

     

    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.

  • pablik01 Profile Picture
    on at

    Still nothing uzytkownicy is table name Uzytkownik is column name

  • pablik01 Profile Picture
    on at

    no this not the "," are used in the USA in Europe we use ";"

  • Verified answer
    PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @Tqphan87 Now I see what you are trying to do. Your formular should look something like this then

     

     

    If(!IsBlank(LookUp(uzytkownicy;Uzytkownik = TextInput2.Text));Navigate(dostep);Navigate(odmowa))

     

     

    So basically we check if there is a record where column Uzytkownik equals the Text you have entered. If we do get a record (It is NOT Blank --> !IsBlank(....) ) then we Navigate to dostep otherwise to odmowa.

     

    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.

  • pablik01 Profile Picture
    on at

    Thank you

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard