On Tue, 19 Jun 2007 12:07:25 +0200, Torbjörn Nordlindh wrote: > Anyway, here's the real puzzle: > > If you > put 1 into a > put 1 + 0 into b > > Then a is a number and b is a number and a is an integer and b is an > integer and a=b. > > Split treats them differently: > > split a by comma gives an array > split b by comma is still a number > > So, the question is: > > What's the difference between a and b?
"a" is still a string, and "b" is a number (since you forced it to be one by adding 0). When you do the "is an integer" test, Rev coerces "a" to see if it can be evaluated as an integer - since it can, you get "true"... but the variable "a" remains a string. Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
