« Back to Product

Documentation

IPS_StatusVariableExists

 boolean IPS_StatusVariableExists (int $InstanceID, string $VariableIdent) 

Parameters

InstanceID

ID of the Instance

VariableIdent

Status variable identifier. A listing can be found on IPS_GetStatusVariableIdents

Returns

The return value is TRUE if the status variable exists, otherwise FALSE

Description

Warning

The documentation of this function only for compatibility reasons and should not be used in IPSymcon 2.5 and newer versions. Since version 2.5, the functionality is only emulated and should be replaced by other functions. Since version 4.0, these functions can only be accessed if the Special Switch "Compatibility Functions" is activated.

The command checks whether a specific instance InstanceID has the state variable with the status variable identifier VariableIdent.

Example

if(IPS_StatusVariableExists(12345, "StatusVariable"))
{
    echo IPS_GetStatusVariableID(12345, "StatusVariable");
}
Any questions?