How can i add a condition base on the inputs/values that the flow get from PowerApps
I have a form that register the parameters of a machine
if this parameters are out of range it will send and alert/email to notify that something is wrong
I already solve the alert base on a condition but now i need to specify which parameter is out of range
If VLP is less than 16 or grater than 33 I need a text next to it indicating that is "Out of Range" if not the text will be blank
and so on with the others parameters
is this possible?
I made a test on my own but i got and error
Solved! Go to Solution.
Try something like this:
if(
or(
less(int(triggerBody()['Sendanemail(V2)_Body_2']),16),
greater(int(triggerBody()['Sendanemail(V2)_Body_2']),33)
),'Out of Range','Within Range')
You had an "and" condition in your expression. A number cannot be both less than 16 and greater than 33 at the same time, but it can be either one.
For the purposes of testing I changed it to show Out of Range or Within Range but you can easily adjust it.
Please...
If I answered your question Accept it as a solution ✔️
If I helped you out, please give me some Kudos 👍
Thanks 😙
Hello @EC_1
What is the error you received?
Change your double quotes to single quotes.
If(and(less(triggerBody()['Sendanemail(V2)_Body_2'],16),greaterOrEquals(triggerBody()['Sendanemail(V2)_Body_2'],33)),'Out of Range','')
Proud to be a Flownaut!
Try something like this:
if(
or(
less(int(triggerBody()['Sendanemail(V2)_Body_2']),16),
greater(int(triggerBody()['Sendanemail(V2)_Body_2']),33)
),'Out of Range','Within Range')
You had an "and" condition in your expression. A number cannot be both less than 16 and greater than 33 at the same time, but it can be either one.
For the purposes of testing I changed it to show Out of Range or Within Range but you can easily adjust it.
Please...
If I answered your question Accept it as a solution ✔️
If I helped you out, please give me some Kudos 👍
Thanks 😙
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
User | Count |
---|---|
80 | |
55 | |
55 | |
43 | |
39 |
User | Count |
---|---|
83 | |
81 | |
76 | |
65 | |
42 |