I am writing an online reservation system. I have catagorys of rooms, then individual blocks of rooms in them. To show preferance, to sea front over other catered rooms, you would select a number for the catagory of room, then for the blocks assing a perferance (all down with drop down lists).
im creating a 2D array from this data, then running through it to write out a list of prefered accomodation.
The drop down lists have values that i use as the array index, but as not all catagorys and blocks need a preferance assinged i need a way of skiping over null values.
Is there a simple if(array[x][y].isNull) method? Any other ideas?