is_valid_itemid(item_id)
Description
returns a true or false if the item_id is valid or not respectively
Example
x=is_valid_itemid(get_max_itemid()+1)
msgbox(x)
- this snippet of code returns a 0 (false) as it is one greater than the maximum valid id
x=is_valid_itemid(get_max_itemid())
msgbox(x)
- this snippet of code returns a 1 (true) as the item id is the maximum
Related Rules
get_max_itemid()