« Back to Product

Documentation

IPS_CreateVariable

 int IPS_CreateVariable (int $VariableType) 

Parameters

VariableType
Value Description
0 creates a variable of type boolean
1 creates a variable of type Integer
2 creates a variable of type float
3 creates a variable of type string

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);
Any questions?