cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TSYong
Helper II
Helper II

Condition evaluating incorrectly. String is empty but condition still evaluates to false?

Hi guys,

 

I'm building a flow and have a condition in my flow. However, my condition is evaluating to the wrong boo value. This condition check if the publisher variable contains the string microsoft OR is equals to null. I'm also trimming the string so there should be no spaces within.

trim(first(skip(split(first(split(body('Html_to_text'),'Domain ID :')),'Publisher:'),1)))

You'll see that the string is empty below:

TSYong_0-1617961794347.png

However, the condition evaluates to false?

TSYong_2-1617961889094.png

TSYong_1-1617961858614.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
alrez
Community Support
Community Support

Hi,

 

I'm fairly certain that Null and empty are different. Can you try just removing the null from your condition? I believe that should make it start working.

 

Regards,

 

Alex

 

-------

 

Community Support Team _ Alex Rezac
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

3 REPLIES 3
alrez
Community Support
Community Support

Hi,

 

I'm fairly certain that Null and empty are different. Can you try just removing the null from your condition? I believe that should make it start working.

 

Regards,

 

Alex

 

-------

 

Community Support Team _ Alex Rezac
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

VictorIvanidze
Memorable Member
Memorable Member

Just use empty() function.

Hey Alex, 

 

I can confirm that removing the null works. Just for my knowledge, what's the difference between null and empty?

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 (1,175)