cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jpitt42
Regular Visitor

Conditions Look Met but Not Giving Correct Result

I have a condition where I am comparing an excel sheet to an output and then double-checking it from the excel sheet to their Outlook profile but for some reason, the condition keeps getting marked "False" instead of true.  Screenshot is below but the outputs are:

 

Last Name Excel: PITT
Output: PITT

Emp #: 9292
Nickname: 009292

 

Screen Shot 2020-02-23 at 9.13.49 AM.png

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @jpitt42 ,

 

From the data you provided, the correct conditions should be Nickname contains Emp #.

In addition, if they are used as strings for comparison, then you need to ensure that both values are string or format these two values into string format using the string() function, so that you can use Contains to determine.

 

You can swap the positions of Nickname and Emp # first and then test if the results are as expected.

 

If it still doesn't work, you need to format them into strings using the string() function before you can compare them.

 

Like:

9.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-bacao-msft
Community Support
Community Support

 

Hi @jpitt42 ,

 

From the data you provided, the correct conditions should be Nickname contains Emp #.

In addition, if they are used as strings for comparison, then you need to ensure that both values are string or format these two values into string format using the string() function, so that you can use Contains to determine.

 

You can swap the positions of Nickname and Emp # first and then test if the results are as expected.

 

If it still doesn't work, you need to format them into strings using the string() function before you can compare them.

 

Like:

9.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (2,005)