var redraw = [
[0, 0, 1, "north"],
[1, 1, 1, "north east"],
[2, 1, 0, "east"],
[3, 1,-1, "south east"],
[4, 0,-1, "south"],
[5,-1,-1, "south west"],
[6,-1, 0, "west"],
[7,-1, 1, "north west"],
];
With teh following table, it is easy to convert from a number row
reference to text
d = redraw[row][3]
But if I have text, is there an easy way to lookup the other columns in
this kind of table?
--
--
Fabian
Visit my website often and for long periods!
[0, 0, 1, "north"],
[1, 1, 1, "north east"],
[2, 1, 0, "east"],
[3, 1,-1, "south east"],
[4, 0,-1, "south"],
[5,-1,-1, "south west"],
[6,-1, 0, "west"],
[7,-1, 1, "north west"],
];
With teh following table, it is easy to convert from a number row
reference to text
d = redraw[row][3]
But if I have text, is there an easy way to lookup the other columns in
this kind of table?
--
--
Fabian
Visit my website often and for long periods!
Comment