Reputation: 222532
I am trying to add a condition in Logic apps using one of the field . I have a field named score
.
I want to add a condition and insert to the SQL database column named "Result".
The score returns the values from 1 to 10. I just want to check
This is what i have done, i have used the logical functions named "if" and wrote the condition as,
if(parameters("Score")>5,"Positive","Negative") //just an example to check
But it says "The expression is invalid" , how should i correct this?
Upvotes: 0
Views: 1936
Reputation: 10920
Try the below. It works for me
if(greater(parameters('score'),5) ,'Positive','Negative')
Upvotes: 2