Anomolous is among

Dar Scott dsc at swcp.com
Sat Jul 23 00:09:24 EDT 2005


On Jul 22, 2005, at 9:47 PM, Brian Yennie wrote:

> answer "planets" is among the words of " "   => TRUE
> answer "planets" is among the words of x    => FALSE
>
> It looks like it has to do with using string literals in the 
> statement, and chokes on empty words.

Yeah.  But it seems to be a little more involved than that:

   put "planets" is among the words of char 4 of "1 2 "
==> true

   put "planets" is among the words of char 2 of "1 2 "
==> false

Weird.

on mouseUp
   constant x = " "
   put "planets" is among the words of x
end mouseUp

==> true

Dar




More information about the use-livecode mailing list