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 / Comparison in If State...
Power Apps
Answered

Comparison in If Statement

(0) ShareShare
ReportReport
Posted on by 599

Hi,

 Am comparing values in If function like  following,
If(Concat(List.ID,Text(ThisRecord.ID),";") in Concat(col.CID,Text(ThisRecord.CID),";"),"True","False").

Here Concat(List.ID,Text(ThisRecord.ID),";") Getting values 1;2;3;4;5.
Concat(col.CID,Text(ThisRecord.CID),";") Getting value 5.

 

It always getting false.

But i need a Answer True.  My if function is Correct or Wrong? What to do?

 

Thanks.

Categories:
I have the same question (0)
  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Dhinesh28R swap them around,

    If(Concat(col.CID,Text(ThisRecord.CID),";") in Concat(List.ID,Text(ThisRecord.ID),";"),"True","False")

  • Dhinesh28R Profile Picture
    599 on at

    Hi @CNT ,
    Its working man.

    But i have a doubt?

    If i put "in" means Its getting true.

    If i put "=" means its getting false.

     

    If suppose to i put "=" means how to get true man?

     

    Thanks.

  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Dhinesh28R '=' means exact match whereas 'in' doesn't have to be a exact match but as long as it's in there it's fine.

     

    Please remember to give a 👍 and accept the solution as it will help others in the future.

  • Dhinesh28R Profile Picture
    599 on at

    @CNT , Okay man.

    If suppose i want this 1;2;3;4 is Like following,

    1

    2

    3

    4

    What to do? i use split but it doesn't work. 

     

    Thanks.

     

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard