get_depend_items(item_id)
Description
Returns a a table of all depends items.
Example
x=get_depend_items(item_id)
max=table.maxn(x)
if max ==0
then
m="no"
else
m=string.format("%.0f",max)
end
msg="has ".. m .." depends items"
msgbox(msg,"")
This bit of code will create a table of depends item ids (x) of the current selected item.
A message is printed that says either that there are no depends or gives the number of depends items.
Related Rules
none
Rules