Documentation
IPS_CategoryExists
boolean IPS_CategoryExists (int $CategoryID)
Parameters
CategoryID | ID of the category to be tested |
Returns
If the CategoryID exists in the system, TRUE is returned, otherwise FALSE.
Description
The command will check if the category with the ID CategoryID exists.
Example
if (IPS_CategoryExists(45724))
echo "Category already exists!";