« Back to Product

Documentation

IPS_IsInstanceCompatible

 boolean IPS_IsInstanceCompatible (int $InstanceID, int $ParentID) 

Parameters

InstanceID

ID of the instance

ParentID

ID of the potential parent instance

Returns

TRUE if the instance is compatible, otherwise FALSE

Description

The command determines if 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 to another instance!";
Any questions?