contains operator

hershrev hershbp at realtorsgroup.us
Tue Feb 24 20:50:15 EST 2004


On Tuesday, February 24, 2004, at 08:26 PM, Jeanne A. E. DeVoto wrote:

> At 7:50 PM -0500 2/24/2004, hershrev wrote:
>>>  "c" is not among the chars of "ab"
>> From the doc. of Rev.
>> "Hello" is among the words of "Hello World" -- evaluates to true
>> "Hell" is among the words of "Hello World" -- evaluates to false
>> which means even if "c" is among "abc" it'll return false.
>
> That's not quite right. If you check
>   c is not among the chars of "abc"
> it will evaluate to true, because you are testing chars (not words). 
> In this case, "c" is one of the characters in "abc", so the expression 
> evaluates to true.
>
> The examples from the docs test words, not chars. "Hell" is not one of 
> the words in "Hello World", so the example evaluates to false. 
> However, if you check whether "H" is among the chars of "Hello World", 
> it will evaluate to true.
Yes , sounds right.
> -- 
> jeanne a. e. devoto ~ jaed at jaedworks.com
> http://www.jaedworks.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list