Error
The Error function generates an error condition containing the specified message.
Definition
Error(texto)Parameters
| Name | Description | Data type |
|---|---|---|
| texto | Contains the message text to be used for the error. | string |
Example
The following expression returns the value of variable x divided by 50, except if x is greater than 50, in which case it produces an error.
If(x > 50, Error('El resultado no es el esperado'), x / 50)The result is "El resultado no es el esperado" (string).