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

Flow with a condition checking a calcualted true/false value always returns false

I am trying to trigger an action based on whether todays's day of month equals the value in a spreadsheet cell. The expression always evaluates false, but when I use the values in the FALSE evaluation path, the values are equal.  Do you see the problem?

 

It looks something like this:

 

flow1.png

 

If these values are equal, I want to trigger the TRUE path, but it always evaluates to FALSE.  But when I email these two values in the false evaulation path, they are equal, indicating that it should have evaluated to TRUE?

 

flow2.png

 

You can see the results here:

 

FlorResult.png

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yamao-msft
Community Support
Community Support

Hi @ruffinc,

 

The condition doesn’t match because the value returned from the dynamic content DOM is not in the type of Integer.

 

Please use int function to convert MOD into integer.

 

I have made the following flow for your reference.

 

The function used in the Condition is:

 

int(items('Apply_to_each')?['DOM'])

is equal to

variables(‘test’)

 

Then the flow would go to the Yes branch if the condition meets.

1.PNG2.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
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

2 REPLIES 2
v-yamao-msft
Community Support
Community Support

Hi @ruffinc,

 

The condition doesn’t match because the value returned from the dynamic content DOM is not in the type of Integer.

 

Please use int function to convert MOD into integer.

 

I have made the following flow for your reference.

 

The function used in the Condition is:

 

int(items('Apply_to_each')?['DOM'])

is equal to

variables(‘test’)

 

Then the flow would go to the Yes branch if the condition meets.

1.PNG2.PNG

 

Best regards,

Mabel

 

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

This worked well.  Thank you for the assistance!

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,704)