ID:155244
 
Is it possible to take a list with a defined .len value, and see if all of its indexes are filled with a value other than null?

I've tried using:

if(null in list)
return


where "list" is an empty list with a pre-determined .len value, but the code just keeps skipping past the if-statement, as if it's returning false.

Any insight would be appreciated.
You could try looping however many times necessary to check all entries, and if one of the list indexes is null, return.

var/list/List[3]
for(var/index=1 to 3)
if(!List[index])return "ERROR: Missing element"