Reputation: 1148
I am trying to check if the field values are null or empty(blank space). Is there a way to trim the field values and check if those are empty string or not?
['==', ['get', 'fieldName'], null]
like similar to this ['==', ['trim', ['get', 'fieldName']], '']
Upvotes: -1
Views: 20
Reputation: 563
I believe you'll want to use to-boolean. And you should be able to do something like this..
["!", ["to-boolean", ["get", "fieldName"]]]
Upvotes: 1