= Stata Capture = '''`-capture-`''' suppresses output and prevents errors from halting execution, but without overwriting the [[Stata/SystemVariables#Return_Code|return code]]. <> ---- == Usage == {{{ capture assert errors==0 if (_rc!=0) { display "There are errors!" } }}} To un-suppress output, try `capture noisily ...`. ---- == See also == [[https://www.stata.com/manuals/pcapture.pdf|Stata manual for -capture-]] ---- CategoryRicottone