break.n

来自「tcl是工具命令语言」· N 代码 · 共 38 行

N
38
字号
'\"'\" Copyright (c) 1993-1994 The Regents of the University of California.'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" RCS: @(#) $Id: break.n,v 1.3 2000/09/07 14:27:46 poenitz Exp $'\" .so man.macros.TH break n "" Tcl "Tcl Built-In Commands".BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEbreak \- Abort looping command.SH SYNOPSIS\fBbreak\fR.BE.SH DESCRIPTION.PPThis command is typically invoked inside the body of a looping commandsuch as \fBfor\fR or \fBforeach\fR or \fBwhile\fR.It returns a TCL_BREAK code, which causes a break exceptionto occur.The exception causes the current script to be abortedout to the innermost containing loop command, which thenaborts its execution and returns normally.Break exceptions are also handled in a few other situations, suchas the \fBcatch\fR command, Tk event bindings, and the outermostscripts of procedure bodies..SH "SEE ALSO"catch(n), continue(n), for(n), foreach(n), while(n).SH KEYWORDSabort, break, loop

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?