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 / Month value should be ...
Power Automate
Unanswered

Month value should be less than or equal to 12 and greater than or equal to 1

(0) ShareShare
ReportReport
Posted on by 5

Hi,

  I have written a if condition where I am checking the output of compose to be less than or equal to 12 and greater than or equal to 1. I am writing this to validate the month field, However if I am giving the output value(input month) as -100 it is not giving warning message and validating successfully.  Can someone please help with this.

 

ShivaniR251_0-1697266735215.png

 

Categories:
I have the same question (0)
  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @ShivaniR251 

     

    I would suggest converting data type of both the operands to be same. The condition will be executed correctly if both operands are compatible. So, convert both operands to integer using an expression as shown below:

    ManishSolanki_0-1697269895154.png

    Expression needs to be entered in the expression window as highlighted in the above screenshot.

    Expression for left side operand:

    int(outputs('Compose'))

    Expression for right side operand:

    int('1')

     

    Similarly, for second clause use expressions to compare:

    Expression for left side operand for second clause:

    int(outputs('Compose'))

    Expression for left side operand for second clause:

    int('12')

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • ShivaniR251 Profile Picture
    5 on at

    Thanks @ManishSolanki , It worked.

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard