Topic Options
#56370 - 10/10/18 09:52 AM strtofloat to measure value >500.00
dstauder Offline
OL User

Registered: 06/28/02
Posts: 74
Loc: St. Louis, Missouri USA
Hello all,

I am trying create a condition in a workflow to compare a string with 2 decimal places and see if it is greater than 499.00. I know that there is strtofloat but not in the text condition. It only allows for comparison of Integers.

Simply put: strtofloat(@(25,1,10))>499.00

How do I write this in a condition?

Many Thanks

Top
#56372 - 10/10/18 10:03 AM Re: strtofloat to measure value >500.00 [Re: dstauder]
Jean-Cédric Offline
OL Expert

Registered: 10/03/16
Posts: 493
Loc: Québec, Canada
Using the Mathematical Operations plugin, you will multiply your value by 100. That will take care of the decimals and make a integer out of it.

Then you can make your condition.

Top
#56373 - 10/10/18 12:18 PM Re: strtofloat to measure value >500.00 [Re: dstauder]
dstauder Offline
OL User

Registered: 06/28/02
Posts: 74
Loc: St. Louis, Missouri USA
Thank you! This will work for what I need.

I appreciate the quick response.

Top