string length function

string length function

It looks like the length() function is returning a string, rather than a BIGINT or LONG. When I enter this:

if (foo.length() > 0)

I get an error that states the left side is a string and the right side is a BIGINT!

Paul