succeeded
Converts a successful evaluation or a failure into a boolean.
Syntax
-
succeeded(expr)
-
expr
is an expression
-
Description
succeed(expr)
evaluates expr
and returns true
if no error was raised during this evaluation; otherwise, false
is returned.
Examples
if( succeeded( name ≔ InputBox("What is your name?") ), MessageBox("Welcome, " ~ name ~ "!"), MessageBox("Welcome anonymous user!") )