« Back to Product

Documentation

IPS_GetLimitVariables

 int IPS_GetLimitVariables ()

Returns

Maximum number of variables. 0 means unlimited.

Description

Warning

This function is intended for internal use only and may change or be removed at any time without notice.

The function returns the maximum number of variables that can be used with the active license. If it is 0, the number is not limited. In demo mode without a valid license, the limit is 1000.

If there are more variables than the limit allows, the excess variables are locked. If the license is upgraded, locked variables are unlocked accordingly.

Example

$limit = IPS_GetLimitVariables();
if ($limit == 0) {
    echo "Unlimited number of variables";
} else {
    printf("%d of %d variables used", count(IPS_GetVariableList()), $limit);
}
Any questions?