web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Check the day conditio...
Power Automate
Suggested Answer

Check the day condition always returns true although should be false

(1) ShareShare
ReportReport
Posted on by 100
I have a do until loop wherein it check the day .ie Monday, Tuesday etc...  and if the day is not week end = true then Increment the integer
 
 
Correct Result :  if Day does not contain Saturday or Sunday then Increment Integer = False
 
 
For some reason still returns true which I don't understand
 

 
 
 
 
 
 
 
 
 
 
 
 
Categories:
I have the same question (0)
  • Suggested answer
    omkar-godse Profile Picture
    22 on at

    Hi @floxfloat,

    The condition in the action 'Check Current Day 2 - copy' is incorrect. You should use 'Contain' instead of 'Does not contain' and move your further logic of incrementing the integer and so on under the 'If no' part instead of 'If yes'. Everything else looks fine.

    In the example that you have attached, the current day is SATURDAY. So, Statement 1) Output does not contain SATURDAY = FALSE and Statement 2) Output does not contain SUNDAY = TRUE.

    FALSE OR TRUE will become TRUE. That's why the output of that action is coming true every time on weekends.

     

    If you correct it as mentioned above, then on weekends, i.e., on Sat or Sun, the output of the condition will come as true, but it will not execute the incrementing integer steps (as we moved it under the 'If no' branch).

    On weekdays, both statements will become FALSE and the output of the condition will come as false since FALSE OR FALSE = FALSE. Then it will execute the incrementing integer steps under the 'If no' part.

    --------------------------------------------------------------------------------------------

     

    If this helps resolve your issue, please consider liking and marking the answer as verified. 😊👍

    --------------------------------------------------------------------------------------------

  • Chriddle Profile Picture
    8,443 Super User 2025 Season 2 on at
    If you want to count the working days or get an array of them, check the following:

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard