There is a two-dimensional sparse array matrix . Access to the item is as follows:
if matrix[x] and matrix[x][y] then -- Делаем что-то с этим элементом end When using if matrix[x][y] then , if there is no array on X, it gives an error attempt to index a nil value . Is it possible to solve this problem with metatables or by some other option?
matrix[x]? - zed