From: "Bermejo, Rodrigo" Date: 2003-08-31T14:05:48+09:00 Subject: Re: How to end script execution mid-script? ----------------------------------------------------------- Kernel::exit exit( anInteger=0 ) ------------------------------------------------------------------------ Initiates the termination of the Ruby script by raising the SystemExit exception. This exception may be caught. The optional parameter is used to return a status code to the invoking environment. ---------------------------------------------------------- Kernel::abort abort ------------------------------------------------------------------------ Terminate execution immediately, effectively by calling Kernel.exit(1). Kurt Euler wrote: >All > >A control flow question: Could someone advise if there is command to end Ruby scripts operation? For example, if a certain condition is true, then the script should terminate? > >Thanks. > > > > > >