Ns adp break

From AOLserver Wiki
Jump to navigation Jump to search

Man page: http://aolserver.com/docs/tcl/ns_adp_break.html


NAME

ns_adp_break - Stop processing of the current ADP

SYNOPSIS

ns_adp_break ?retval?

DESCRIPTION

This command stops processing of the current ADP by throwing a Tcl error along with an "ADP exception" of ADP_BREAK. Unlike ns_adp_abort, any output in the ADP buffer is preserved and queued to be sent to the client.
The optional retval becomes the return value of the ADP if specified, otherwise an empty string is returned.

EXAMPLES

   if {$serveThisADP == 0} {
       ns_adp_break
   }

SEE ALSO

ns_adp_abort, ns_adp_append, ns_adp_argc, ns_adp_argv, ns_adp_bind_args, ns_adp_debug, ns_adp_debuginit, ns_adp_dir, ns_adp_dump, ns_adp_eval, ns_adp_exception, ns_adp_include, ns_adp_mime, ns_adp_mimetype, ns_adp_parse, ns_adp_puts, ns_adp_registeradp, ns_adp_registerproc, ns_adp_registertag, ns_adp_return, ns_adp_safeeval, ns_adp_stats, ns_adp_stream, ns_adp_tell, ns_adp_trunc

Category Documentation - Category Core Tcl API