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.
Thanks @ManishSolanki , It worked.
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:
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
WarrenBelz
146,660
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional