What would be the best way to check for an empty index in a list?

I basically just want a true or false for if any indexes are empty.

For example: [{key:value}, {}, {key:value}], index 1 is empty.

1 Like

Great question @ackerman! This came to mind:

FROM item, index IN myList WHERE ISEMPTY(item) SELECT index

This would return a list of indexes where the item is empty.

3 Likes

THIS!

@ackerman you can also do this:

FROM myList WHERE ISEMPTY(item) SELECT index

As item and index bindings are automatically defined when using a query expression on a list!!

2 Likes