continue

機能

ループの実行を中断しの先頭に処理を移す.

形式

continue

パラメータ

なし

解説

処理の実行を中断して,while 文や do-while 文の終了を判断する条件式に戻る. for 文の場合は,実行を中断して for 文の 3 式目に定義されている初期値 の再設定に処理を移し,その後,終了を判断する条件式に戻る.

使用例

% for( i=0; i<100; i++ ) {
%  ...... statement1 .....
%  if ( data!=0.0 ) {
%      continue;    /* bypass the rest of the statements */
%  }
%  ...... statement2 .....
% }
%

参照

whiledo-whileforbreak

Last updated: 2005/03/31