Difference between revisions of "DIE()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
m (Text replace - "Recital" to "Lianja")
Line 12: 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 Lianja process, returns the specified message, <expC>, or status code (-1 to 254), <expN>, to the operating system or calling script.   
  
  
Line 25: Line 25:
  
 
==Products==
 
==Products==
Recital, Recital Server
+
Lianja, Lianja Server
  
 
[[Category:Documentation]]
 
[[Category:Documentation]]

Revision as of 12:40, 7 December 2012

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 Lianja 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

Lianja, Lianja Server