Algosim documentation: succeeded

succeeded

Converts a successful evaluation or a failure into a boolean.

Syntax

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!")
)

See also