Documentation
GetValueFormatted
string GetValueFormatted (int $VariableID)
Parameters
VariableID | ID of the variable |
Returns
Value of the specified variable, formatted accordingly to profile
Description
The command returns the content of the IP-Symcon variable with the ID VariableID after being formatted according to the variables profile. The formatted result is always returned as string.
Example
echo GetValueFormatted(47788); //Profile = ~Switch
//Returns: On or Off
echo GetValueFormatted(46250); //Profile = ~Temperature
//Returns: 17,5°C