Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cells = {}
- cells[1] = { assigned = "a", location = 69 }
- cells[2] = { assigned = "b", location = 71 }
- cells[3] = { assigned = "c", location = 73 }
- cells[4] = { assigned = "d", location = 75 }
- cells[5] = { assigned = "e", location = 101 }
- cells[6] = { assigned = "f", location = 103 }
- cells[7] = { assigned = "j", location = 105 }
- cells[8] = { assigned = "h", location = 107 }
- cells[9] = { assigned = "i", location = 133 }
- cells[10] = { assigned = "j", location = 135 }
- cells[11] = { assigned = "j", location = 137 }
- cells[12] = { assigned = "l", location = 139 }
- cells[13] = { assigned = "m", location = 165 }
- cells[14] = { assigned = "n", location = 167 }
- cells[15] = { assigned = "o", location = 169 }
- cells[16] = { assigned = "p", location = 171 }
- -- I know how to do this with for i=1, #cells do if cells[i].location==133 then cellToEdit=i;end;end
- --but now I want to use ipairs to locate the one with location 133.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement