The definition of a word
Peter T. Evensen
pevensen at siboneylg.com
Fri Jul 28 18:25:05 EDT 2006
I just ran into something unexpected. If I do the following, I get
1! Does having a quote in a text string change the definition of a word?
put the number of words in (quote & "This is a test" & quote)
In anything defined in quotes considered one word? I would have expected
"This is a test" (including the quotes) to have 4 words:
"This
is
a
test"
I tried using token, and I get the same result.
put the number of words in (quote & "This is a test")
produces 1 as well, but
put the number of tokens in (quote & "This is a test" & quote)
produces 0
Peter T. Evensen
http://www.PetersRoadToHealth.com
314-629-5248 or 888-682-4588
More information about the use-livecode
mailing list