Skip to main content
Version: 9.0.2

sb.quit

sb.quit([channel])

Send QUIT event to application to force shutdown. channel is an optional parameter.

Parameters

ParameterTypeDescription
channel stringAn optional Storyboard IO channel to send the event on, if not specified the event is added directly into the current Storyboard application event queue if neither the environment variable or global GREIONAME variable are set.

Returns

TypeDescription
booleantrue for success, false for failure.

Example

function CBQuit() {
sb.quit()
}

function CBSendQuit() {
var success, error = sb.quit("my_channel")
if(success == false){
print(error)
}
}