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.
Develop games in your browser. Powerful, performant & highly capable.
Oops, good find, will fix for next build.
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.