Client ConfigurationDevices and EndpointsEndpointsRaw Data ConversionExpressionsFunctionsOther Functions
ToString
The ToString function converts a value of any type to string.
Definition
ToString(valor)Parameters
| Name | Description | Data type |
|---|---|---|
| valor | Value to convert to string. If the value is boolean, 'true' will be returned when the value is true, and 'false' when the value is false. If the value is numeric, it will be converted to string, always using a period to separate decimal places, if any. If the value is already a string, it will be returned unchanged. | any |
Numeric to string conversion example
In this example, a numeric expression is converted to a string.
ToString(10 / 4)The result will be '2.5' (string)
Boolean to string conversion example
In this example, a boolean expression is converted to a string.
ToString(20 < 100)The result will be 'true' (string)
ToNumber
The ToNumber function converts a value of any type to numeric.
Actions
Actions are sets of steps that can be executed manually or as a consequence of configured events. Once an action starts, all associated steps are executed one after another in the established order until the sequence is completed.