min() function anomalies
J. Landman Gay
jacque at hyperactivesw.com
Wed Jun 13 18:12:41 EDT 2007
Shari wrote:
> When my code broke, even when I narrowed it down to the one line that
> included min(), I did not assume the min() function was the culprit. I
> assumed that something else in that line of code was in error, perhaps a
> misplaced "(" or some other variable with a wrong value. It was a bugger
> to track down.
Just for the record, the "number of" function works properly as it did
in HC and MC: the number of items in "1,2,3,4," is 4. So it looks like
the problem is only in the math functions.
However, look at this:
put min(1,2,3,4,) --> 0
put min("1,2,3,4,") --> 1
Maybe all you have to do is add quotation marks.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list