Difference between revisions of "DIE()"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 
 
==Purpose==
 
==Purpose==
 
Terminate session returning a message or status code
 
Terminate session returning a message or status code
Line 13: Line 12:
  
 
==Description==
 
==Description==
The DIE() function closes all open files and ends the Recital process, returns the specified message, <expC>, or status code (-1 to 254) , <expN>, to the operating system or calling script.   
+
The DIE() function closes all open files and ends the Recital process, returns the specified message, <expC>, or status code (-1 to 254), <expN>, to the operating system or calling script.   
  
  

Latest revision as of 14:45, 30 October 2009

Purpose

Terminate session returning a message or status code


Syntax

DIE(<expC>|<expN>)


See Also

CLOSE, ERRORLEVEL(), EXIT(), QUIT, RUN


Description

The DIE() function closes all open files and ends the Recital process, returns the specified message, <expC>, or status code (-1 to 254), <expN>, to the operating system or calling script.


Example

// Exit if [ABANDON] was pressed
if lastkey()=ctrl('g')
    die("User "+user()+ " exited at "+time())
endif


Products

Recital, Recital Server