Kingdom Ablaze
Sponsor
so what i wanna do is eliminate the nil values. but my problem is im not sure how to handle two nil values in a row. here is what i have
i know this is so simple but its driving me crazy
Code:
for i in 1...array
if array[i] == nil
i +=1
end
#do the rest of the method, the error would be here because the second nil value made it through.
end
i know this is so simple but its driving me crazy