parameter variables question
Alex Rice
alrice at ARCplanning.com
Tue Jul 29 13:42:00 EDT 2003
On Tuesday, July 29, 2003, at 04:26 PM, Dar Scott wrote:
>>
>> tSomeNonexistentVariable gets evaluated as a string, so that's what's
>> in p2, which is why the "+" operation fails on the RHS.
>
> What's more important is that string is empty, as in "", and that is
> not a numeral and can't be interpreted as a number.
put empty + empty
--> 0
Actually in my example, p2 is not empty, it's literally the string
"tSomeNonexistentVariable". I am now checking if the parameters are
integers, before summing them.
Alex Rice, Software Developer
Architectural Research Consultants, Inc.
http://ARCplanning.com
More information about the use-livecode
mailing list