On 6/24/2014, 1:02 PM, Graham Samuel wrote:
I get a result, "nan", and the catch doesn't fire. Why not? Maybe someone can explain what the engine is doing here - or is it just an obscure bug?
A "catch" only triggers when there is a script error. In this case there is no error, "nan" is a legitimate value for a calculation that can't be computed.
You may have to change to an "if" statement to check for any non-numerical value, which would also include "nan".
-- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode