« Back to Product

Documentation

IPS_IsInstanceCompatible

 bool IPS_IsInstanceCompatible (int $InstanceID, int $ParentID) 

Parameters

InstanceID

ID of the instance

ParentID

ID of the potential parent instance

Returns

TRUE if the instances are compatible, otherwise FALSE

Description

The function determines whether the instance with the ID ParentID is a valid parent instance for the instance with the ID InstanceID.

Example

if (IPS_IsInstanceCompatible(12345, 23456))
    echo "Instance is compatible with the other instance!";
Any questions?