This code seems to remove the item from the table IF the items number is not a double or triple digit number, what am I doing wrong?
ipairs!
Re: ipairs!
ipairs traverses a table that is coninously numbered and has no "holes" in it. If the next number is not found as an index, ipairs stops.
Re: ipairs!
how would I do this with a table that there are many holes in it?
when I add the affliction:
table {
'all': table {
1: 'stupidity'
}
'herb': table {
22: 'stupidity'
}
'breaks': table {}
'writhe': table {}
'focus': table {
1: 'stupidity'
}
'special': table {}
'salve': table {}
'pipe': table {}
}
when I try to remove the affliction
table {
'all': table {}
'herb': table {
22: 'stupidity'
}
'breaks': table {}
'writhe': table {}
'focus': table {}
'special': table {}
'salve': table {}
'pipe': table {}
}
when I add the affliction:
table {
'all': table {
1: 'stupidity'
}
'herb': table {
22: 'stupidity'
}
'breaks': table {}
'writhe': table {}
'focus': table {
1: 'stupidity'
}
'special': table {}
'salve': table {}
'pipe': table {}
}
when I try to remove the affliction
table {
'all': table {}
'herb': table {
22: 'stupidity'
}
'breaks': table {}
'writhe': table {}
'focus': table {}
'special': table {}
'salve': table {}
'pipe': table {}
}
Re: ipairs!
actually did this