Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.2 - English

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.

Scilab Help >> Scilab > Error handling > iserror

iserror

error occurrence test

Calling Sequence

iserror([n])

Arguments

n

an integer, an error number

Description

Tests if error number n has occurred (after a call to errcatch). iserror returns 1 if the error occurred and 0 otherwise.

n>0 is the error number ; all errors are tested with n<0.

Examples

errcatch(4,'continue') // trap undefined variable
unknown
iserror() // 1
errclear()
iserror() // 0

See Also

Report an issue
<< error_table Error handling lasterror >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Apr 01 10:13:49 CEST 2015