Documentation
IPS_CreateVariable
int IPS_CreateVariable (int $VariableType)
Parameters
VariableType |
|
Returns
ID of the newly created variable
Description
This function creates a new IPS variable of the type VariableType.
It returns an ID that can be used to distinctly identify the new variable.
Example
// Create a float variable
$VarID_room temperature = IPS_CreateVariable(2);