« Back to Product

Documentation

IPS_HasInstanceParent

 boolean IPS_HasInstanceParent (int $InstanceID) 

Parameters

InstanceID

ID of the instance

Returns

The return value is TRUE if the instance has a parent instance, otherwise, FALSE.

Description

Warning

This function should not be used since IP-Symcon 2.6 and was removed with IP-Symcon 4.0.

The command indicates whether a particular instance InstanceID, seen by the hardware (physical) view, has a parent instance e.g. a splitter or I/ O module.

Warning

This command is only useful for devices and splitter instances.

Example

// Up to Version 2.5
if(IPS_HasInstanceParent(12345)) 
{
    echo "Has a parent instance";
}
 
// Since Version 2.6
if(IPS_GetInstance(12345)['ConnectionID'] > 0)
{
     echo "Has a parent instance";
}
Any questions?