has_depend_item(item_id, ditem_id)



Description

this function returns a 0 or 1 if the first item (item_id) is dependent on the second item (ditem_id)

Example

x=get_select_items()
maxx=table.maxn(x)
for inc1=1,maxx do
for inc2=1,maxx do
msgbox
if has_depend_item(x[inc1], x[inc3])==1 then
msgbox("Item "..get_folder_value("ItemID",x[inc1]).." Depends "..get_folder_value("ItemID",x[inc3]),"Confirm depends reference")
end
end
end


This bit of code will check all selected items and determine if they have any dependencies. There is no check in the script for self reference