I have a script that sends some data to a REST service to compute the differences between three numbers and then return an average. That part really is not important I don't think, but I want to be complete.
The service returns 0.5 as one result into a variable called "$pairWiseAvg".
Then in the FMP Script, I have code like this:
If [ GetAsNumber($pairWiseAvg) <=0 ] Set Field blah with this (THIS LINE EXECUTES!) Else Set Field blah with that End If
Now, in the FMP debugger, I confirm that the value returned is 0.5
But, FileMaker runs the first part of the IF statement even though 0.5 is not less than 0.
What am I missing?