I've encoutnered that:
tokenCount("",",") = tokenCount("foo",",")= 1
Is this really correct result for this expression?
I would think an empty string should have 0 tokens.
Oops, good find, will fix for next build.
Develop games in your browser. Powerful, performant & highly capable.
TokenCount returns 1 more than the number of tokens in a string. If there are no tokens, it returns 1. I guess this is related to this closed bug. I am on C2 Beta R87 64 bit. Capx for testing is attached.
dl.dropbox.com/u/75480038/TokenCountBugC2R87.capx