cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Noodle
New Member

Condition Doesn't Work?

Hi All, 

 

I am trying to put together an internal purchasing system which takes an MS form of details and passes it through PA so it generates an approval etc. I have managed to this but i wanted the automation to automatically add something below a certain amount to my purchase logs without the need for approval. 

 

as such, I thought, well take the amount on the form, if it's less than 100 then add a row and if its not run the approval routine. For some reason the condition always says true even if the value is below 100. My understanding is that MS forms spits out String values so i have used '100' in my condition. Still nothing. I even tried declaring variables to make them all string. Still the same result. Please help!

 

Noodle_0-1656680064940.png

 

Thank you,

Michael. 

1 ACCEPTED SOLUTION

Accepted Solutions
fchopo
Super User
Super User

Hi @Noodle 

Try to convert the answer field to a number using int function:

int(<your_form-field>) less than 100

 Hope it helps!

Ferran

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

View solution in original post

2 REPLIES 2
fchopo
Super User
Super User

Hi @Noodle 

Try to convert the answer field to a number using int function:

int(<your_form-field>) less than 100

 Hope it helps!

Ferran

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

oh wow! Thank you that worked! I can't believe I didn't try that 

 

Michael. 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,389)