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:
  • 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard