跳转至主要内容
CloudStudio

Error() 函数

The Error function generates an error condition containing the specified message.

Definition

Error(texto)

参数

名称说明Data type
textoContains the message text to be used for the error.string

示例

The following ex按下ion 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).

最后更新于

本页内容