Length() Expression not working on flow

On this:

query_content.length()>=1||query_topics.length()>=1
parser.js:788 Method "length" not found in expression: query_content.length()>=1||query_topics.length()>=1

Did you use the UI to add this formatter? I think you’re looking for .count()

Seems .count() is the Wappler way, .length() is the JS way

1 Like

Do it manually, sorry this confused me:

Thanks @Apple

You almost had it. length is actually a property of the array and not a formatter so you would use query_content.length >= 1||query_topics.length >= 1

query_content.length == query_content.count()

2 Likes