Check if array value contains something

Hey all!
I have an array which looks something like this:

var foo=Array("value1","value2",,,,,"value7");

I have been attempting to get a script to check if foo[2],foo[3] etc. are empty (which they are, so should return true), however have had no luck!
I’ve attempted to use things like if(foo[3]==“”){}else{} and if(foo[3]==“Null”) but can’t get any result. Can anyone help out? :slight_smile:

its null
“NULL” is no null ref declaration

ah thanks very much! :smile:
Before I was attempting to use null as a string (!=“Null”) - never thought about using null by itself!